void Update() { if (Input.GetKeyDown(KeyCode.G) && !ChatInputHandler.isTyping) { ToggleGlider(); } if (isGliderActive) { if (controller.GetMovement().y <= 0) { controller.m_GravityMultiplier = 0.3f; } else { controller.m_GravityMultiplier = startGrav; } } }