Esempio n. 1
0
 protected override void OnProcessEnd(float deltaTime)
 {
     if (FpsControl.WasPressedThisFrame(FpsInput.Jump))
     {
         _hero.GoToState(FpsHeroState.Jump);
     }
     else if (FpsControl.WasReleasedThisFrame(FpsInput.Run))
     {
         _hero.GoToState(FpsHeroState.Normal);
     }
 }
Esempio n. 2
0
        protected override void OnProcessEnd(float deltaTime)
        {
            _hero.Look.LerpToHeight(_cameraHeight, 0.1f);

            if (FpsControl.WasPressedThisFrame(FpsInput.Jump))
            {
                _hero.GoToState(FpsHeroState.Jump);
            }
            else if (FpsControl.WasReleasedThisFrame(FpsInput.Crouch))
            {
                _hero.GoToState(FpsHeroState.Normal);
            }
        }