public override void Activate() { base.Activate(); SO_MovementStats movementStats = _Owner.GetComponent <PlayerController>().PlayerData.MovementStats; movementStats.MovementSpeed = _NewMovementSpeed; }
public override void Deactivate() { base.Deactivate(); SO_MovementStats movementStats = _Owner.GetComponent <PlayerController>().PlayerData.MovementStats; movementStats.ResetMovementSpeed(); }
private void Start() { _Rigidbody = GetComponent <Rigidbody>(); _CurrentVelocity = Vector3.zero; var playerController = GetComponent <PlayerController>(); _MovementStats = playerController.PlayerData.MovementStats; _MovementStats.Initialize(); }