Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
        /// <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;
            }
        }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 void OnLeave()
 {
     //TODO: call this when leaving room
     audio.Stop();
 }
Exemplo n.º 4
0
 /// <summary>
 ///     Handler for leaving this room.
 ///     Shall be called whenever the player leaves this room
 /// </summary>
 public void OnRoomLeave()
 {
     _audioLoader.Stop();
 }