Added audio, it's finished

This commit is contained in:
2020-04-19 09:22:26 +10:00
parent 499d572dfb
commit 71ec83ec7e
25 changed files with 476 additions and 4 deletions

View File

@@ -5,12 +5,16 @@ using UnityEngine.SceneManagement;
public class Claws : MonoBehaviour {
SpriteRenderer spriteRenderer;
AudioController audioController;
void Awake() {
spriteRenderer = GetComponent<SpriteRenderer>();
audioController = GameObject.Find("AudioController").GetComponent<AudioController>();
StartCoroutine(FadeOverTime(2f));
StartCoroutine(SwitchScenesAfter("MainMenu", 5f));
audioController.StopAll();
}
IEnumerator FadeOverTime(float delay) {