added wand package, flying improvements
This commit is contained in:
@@ -7,6 +7,8 @@ public class FlyWand : MonoBehaviour
|
||||
private GameObject player;
|
||||
private bool isFlying;
|
||||
|
||||
public float flySpeed = 10f;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
player = GameObject.FindGameObjectWithTag("Player");
|
||||
@@ -18,7 +20,7 @@ public class FlyWand : MonoBehaviour
|
||||
{
|
||||
if (isFlying)
|
||||
{
|
||||
player.transform.position += transform.up * 0.5f;
|
||||
player.transform.position += transform.up * flySpeed * Time.deltaTime;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
10
Assets/Project Files/Scripts/JoonasP/Holster.cs
Normal file
10
Assets/Project Files/Scripts/JoonasP/Holster.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Holster : MonoBehaviour
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
11
Assets/Project Files/Scripts/JoonasP/Holster.cs.meta
Normal file
11
Assets/Project Files/Scripts/JoonasP/Holster.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c2dedcaf08188c4b9c5204f37045ea6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user