mirror of
https://github.com/Ratstail91/Keep-It-Alive.git
synced 2025-11-29 10:34:27 +11:00
Added audio, it's finished
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user