/// <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); } }
/// <summary> /// /// </summary> protected virtual void OnEnable() { // allow this monobehaviour to talk to the player event handler if (m_Player != null) { m_Player.Register(this); } }