added wand package, flying improvements

This commit is contained in:
joonasp
2022-03-10 13:49:11 +02:00
parent dc0cc4cd32
commit ab4fc2f635
124 changed files with 8470 additions and 8 deletions

View File

@@ -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;
}
}

View File

@@ -0,0 +1,10 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Holster : MonoBehaviour
{
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6c2dedcaf08188c4b9c5204f37045ea6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: