/// <summary> /// /// </summary> protected virtual void OnEnable() { if (FPController != null) { m_FPControllerAccelerationBak = FPController.MotorAcceleration; } FPPlayer.Register(this); }
/// <summary> /// registers this component with the event handler (if any) /// </summary> protected override void OnEnable() { if (FPPlayer != null) { FPPlayer.Register(this); } RefreshColliders(); }
/// <summary> /// /// </summary> protected virtual void OnEnable() { if (FPPlayer != null) { FPPlayer.Register(this); } vp_GlobalEvent <Transform, string> .Register("HUDText", OnHUDText); }
/// <summary> /// /// </summary> protected virtual void OnEnable() { if (FPPlayer != null) { FPPlayer.Register(this); } m_CurrentShooter = null; VRFirePositionFunc = () => { return(FPCamera.transform.position); }; VRFireRotationFunc = () => { return(FPCamera.transform.rotation); }; BackupWeaponSettings(); }