private void StopShootBallCoroutines() { if (shootTimerCoroutine != null) { circularTimer?.StopTimer(); StopCoroutine(shootTimerCoroutine); shootTimerCoroutine = null; } if (chargeShotCoroutine != null) { shotChargeIndicator.Stop(); StopCoroutine(chargeShotCoroutine); chargeShotCoroutine = null; } }
private void StopShootBallCoroutines() { if (shootTimer != null) { circularTimer?.StopTimer(); StopCoroutine(shootTimer); shootTimer = null; } if (chargeShot != null) { shotChargeIndicator.Stop(); StopCoroutine(chargeShot); chargeShot = null; } playerMovement.freezeRotation = false; }