void SpecialAttack() { if (!canPerformSpecialAttack) { return; } if (Input.GetKeyDown(KeyCode.X)) { if (canPerformSpecialAttack) { effectController.PlaySpecialAttack(); Debug.Log($"Attack Activated : {specialAttackMessage}"); attackAnim.SpecialAttack(); // preventing game manager to set time scale to 1 // after calling special attack animator.speed = 1.2f; movement.speed = 4f; } } }