This commit is contained in:
2026-01-25 19:36:51 +01:00
parent e38a2b05e7
commit a21f76314f
19 changed files with 841 additions and 50 deletions
+15 -1
View File
@@ -3,6 +3,7 @@ using System.Collections;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;
using Random = System.Random;
public class PlayerMove : MonoBehaviour
{
@@ -34,6 +35,8 @@ public class PlayerMove : MonoBehaviour
{
rb = GetComponent<Rigidbody>();
standUp = GetComponentInChildren<StandUpCollider>();
StartCoroutine(MakeSound(7f));
}
void Update()
@@ -113,6 +116,7 @@ public class PlayerMove : MonoBehaviour
{
StartCoroutine(Step(0.3f));
}
}
@@ -135,5 +139,15 @@ public class PlayerMove : MonoBehaviour
}
IEnumerator MakeSound(float delay)
{
while (true)
{
yield return new WaitForSeconds(delay);
SoundEffectManager.Play("Penguin Sound");
}
}
}