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

@@ -4,9 +4,14 @@ using UnityEngine;
using UnityEngine.SceneManagement;
public class FireGoesOut : MonoBehaviour {
AudioController audioController;
void Awake() {
//TODO: play extinguished sound
audioController = GameObject.Find("AudioController").GetComponent<AudioController>();
StartCoroutine(SwitchScenesAfter("MainMenu", 3f));
audioController.StopAll();
}
IEnumerator SwitchScenesAfter(string sceneName, float delay) {