Пример #1
0
    public override void Activate()
    {
        base.Activate();
        SO_MovementStats movementStats = _Owner.GetComponent <PlayerController>().PlayerData.MovementStats;

        movementStats.MovementSpeed = _NewMovementSpeed;
    }
Пример #2
0
    public override void Deactivate()
    {
        base.Deactivate();
        SO_MovementStats movementStats = _Owner.GetComponent <PlayerController>().PlayerData.MovementStats;

        movementStats.ResetMovementSpeed();
    }
Пример #3
0
    private void Start()
    {
        _Rigidbody       = GetComponent <Rigidbody>();
        _CurrentVelocity = Vector3.zero;
        var playerController = GetComponent <PlayerController>();

        _MovementStats = playerController.PlayerData.MovementStats;
        _MovementStats.Initialize();
    }