Beispiel #1
0
    private IEnumerator RoundEnd()
    {
        audioSource.PlayOneShot(scoreClip);
        Debug.Log("Round ended");
        ball.Explode();

        yield return(new WaitForEndOfFrame());

        if (GameEnded())
        {
            End();
        }
        else
        {
            yield return(new WaitForSeconds(roundTail));

            StartCountdown();
        }
    }