This commit is contained in:
go38coz
2026-06-07 04:05:34 +02:00
6 changed files with 273 additions and 1 deletions
+12
View File
@@ -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
+10 -1
View File
@@ -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()