private void DropBall() { if (Ball != null) { if (carryBallCoroutine != null) { StopCoroutine(carryBallCoroutine); carryBallCoroutine = null; } // TODO dkonik: This should be event based laserGuide?.StopDrawingLaser(); if (this.isActiveAndEnabled) { StartCoroutine(CoolDownTimer()); } } IsCarryingBall = false; }
public void DropBall() { if (Ball != null) { GameManager.instance.ResetSlowMo(); StopCoroutine(carryBallCoroutine); carryBallCoroutine = null; snapToObject = null; // Reset references Ball.Owner = null; Ball = null; laserGuide?.StopDrawingLaser(); if (this.isActiveAndEnabled) { StartCoroutine(CoolDownTimer()); } } IsCarryingBall = false; }