/// <summary> /// Handler for leaving this room. /// Shall be called whenever the player leaves this room /// </summary> public void OnRoomLeave() { if (_audioLoader != null) { _audioLoader.Stop(); } gameObject.transform.Find("Timer").transform.GetComponent <MeshRenderer>().enabled = false; }
/// <summary> /// Handler for leaving this room. /// Shall be called whenever the player leaves this room. /// </summary> public void OnRoomLeave() { gameObject.SetActive(false); if (_audioLoader != null) { _audioLoader.Stop(); } var timer = gameObject.transform.Find("Timer"); if (timer != null) { timer.transform.GetComponent <MeshRenderer>().enabled = false; } }
/// <summary> /// /// </summary> void OnLeave() { //TODO: call this when leaving room audio.Stop(); }
/// <summary> /// Handler for leaving this room. /// Shall be called whenever the player leaves this room /// </summary> public void OnRoomLeave() { _audioLoader.Stop(); }