private void MonitorFly() { flightStaminaCurrentValue = flightStamina.GetCurrentTimerValue(); //When stamina is over, trurn on gravity and only on touchdown switch on walk if (flightStaminaCurrentValue <= 0 && currentMovement == fly) { if (controller.isGrounded != true) { fly.EnableGravity(); fly.BlockMovement(); } else { SwitchOnWalk(); } } DoubleSpaceFlightTrigger(); }