Example #1
0
 public void OnInvisible()
 {
     VisibleTransmitters.Remove(null);
     VisibleTransmitters.Remove(this);
     if (ActiveTransmitter == this)
     {
         ActiveTransmitter = null;
     }
     for (int i = 0; i < Renderers.Length; i++)
     {
         Renderers [i].enabled = false;
     }
 }
Example #2
0
 public void DeactivateTransmitter()
 {
     ActiveLight.enabled = false;
     if (ActiveTransmitter == this)
     {
         ActiveTransmitter = null;
     }
     for (int i = 0; i < Renderers.Length; i++)
     {
         Renderers [i].enabled = false;
     }
     CharacterRoom.gameObject.SetActive(false);
     if (mSpeakingCharacter != null)
     {
         mSpeakingCharacter.Body.SetVisible(false);
     }
     TargetCamera.enabled = false;
     enabled = false;
 }