protected override ControlHandlerAfterUpdateStatus DoUpdate()
    {
        _blinkTimer.Update();

        var deltaMovement = new Vector2(
            Time.deltaTime * _distancePerSecond,
            Mathf.Max(
                GetGravityAdjustedVerticalVelocity(
                    PlayerController.CharacterPhysicsManager.Velocity,
                    PlayerController.AdjustedGravity,
                    true),
                PlayerController.JumpSettings.MaxDownwardSpeed)
            * Time.deltaTime);

        PlayerController.CharacterPhysicsManager.Move(deltaMovement);

        return(ControlHandlerAfterUpdateStatus.KeepAlive);
    }
Ejemplo n.º 2
0
    protected override ControlHandlerAfterUpdateStatus DoUpdate()
    {
        _blinkTimer.Update();

        return(base.DoUpdate());
    }