Merge branch 'main' of https://github.com/orsolya-st/gamejam_050626
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class TutorialScript : MonoBehaviour
|
||||
{
|
||||
void Update()
|
||||
{
|
||||
if (Input.anyKeyDown)
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2dad36344cb7b6942ab3d266fc502a60
|
||||
@@ -15,6 +15,8 @@ public class WindManager : MonoBehaviour
|
||||
|
||||
public float CurrentWindForce { get; private set; }
|
||||
|
||||
private bool windStarted = false;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
Instance = this;
|
||||
@@ -26,8 +28,15 @@ public class WindManager : MonoBehaviour
|
||||
{
|
||||
effect.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
StartCoroutine(WindRoutine());
|
||||
void Update()
|
||||
{
|
||||
if (!windStarted && Input.anyKeyDown)
|
||||
{
|
||||
windStarted = true;
|
||||
StartCoroutine(WindRoutine());
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator WindRoutine()
|
||||
|
||||
Reference in New Issue
Block a user