コード例 #1
0
 /// <summary>
 /// registers this component with the event handler (if any).
 /// NOTE: this is overriden by vp_FPPlayerEventHandler
 /// </summary>
 protected override void OnEnable()
 {
     if (Player != null)
     {
         Player.Register(this);
     }
 }
コード例 #2
0
 /// <summary>
 ///
 /// </summary>
 protected virtual void OnEnable()
 {
     // allow this monobehaviour to talk to the player event handler
     if (m_Player != null)
     {
         m_Player.Register(this);
     }
 }