Ejemplo n.º 1
0
 /// <summary>
 /// unregisters this component from the event handler (if any).
 /// NOTE: this is overriden by vp_FPPlayerEventHandler
 /// </summary>
 protected override void OnDisable()
 {
     if (Player != null)
     {
         Player.Unregister(this);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 protected virtual void OnDisable()
 {
     // unregister this monobehaviour from the player event handler
     if (m_Player != null)
     {
         m_Player.Unregister(this);
     }
 }