// ensures a single instance on the bound object // SINGLETON PATTERN void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } }
void Start() { audioHandler = TestAudioHandler.instance; StartCoroutine(AudioTester()); coroutine = WaitAndChangeScene(5.0f); }