Beispiel #1
0
    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;
    }
Beispiel #2
0
    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;
    }