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); } }
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); } }