Ejemplo n.º 1
0
    public override void StartWithoutInterrupt()
    {
        base.StartWithoutInterrupt();

        _playerStamina.StartWithoutInterrupt();

        float drainValue = GetDrainValue();

        _playerStamina.MaxCurveTime -= drainValue;
        DrainPerSecond = drainValue / _recoveryTime;
    }
Ejemplo n.º 2
0
    public override void Load()
    {
        _playerStamina.CurveTime    = curveTime;
        _playerStamina.MaxCurveTime = maxCurveTime;

        if (!isCoroutineGoing)
        {
            return;
        }

        _playerStamina.StartWithoutInterrupt(new WaitForSeconds(currentDelay));
    }