private void Input() { if (GameData.gameController.input.rightBumper) { kickButtonPressed = true; if (GameData.playerGrapplingHandler.isTracting && !isKicking) { isKicking = true; GetComponentInChildren <PlayerVisuals>().isKicking = 5; StartCoroutine(currentKick.Use(gameObject, Quaternion.Euler(0.0f, 0.0f, Vector2.SignedAngle(Vector2.right, GameData.playerGrapplingHandler.tractionDirection)))); } } else { kickButtonPressed = false; } if (GameData.gameController.input.leftTriggerAxis > 0 && powerCooldownRemaining <= 0) { powerCooldownRemaining = currentPower.cooldown; GetComponentInChildren <PlayerVisuals>().isCastingPower = 10; StartCoroutine(currentPower.Use()); } if (powerCooldownRemaining > 0) { powerCooldownRemaining -= Time.deltaTime; } }