Exemplo n.º 1
0
    public virtual IEnumerator StartNewRound()
    {
        currentRound += 1;
        ResetHUD();
        player1.health = 100.0f;
        player2.health = 100.0f;
        Debug.Log("Round " + currentRound + ", Fight!");
        roundInfoImage.gameObject.SetActive(true);
        upperText.text = "Round " + currentRound;
        lowerText.text = "3";
        yield return(new WaitForSeconds(1.0f));

        lowerText.text = "2";
        yield return(new WaitForSeconds(1.0f));

        lowerText.text = "1";
        yield return(new WaitForSeconds(1.0f));

        lowerText.text = "RUMBLE!";
        hazardSpawner.StartRound();
        yield return(new WaitForSeconds(1.0f));

        upperText.text = "";
        lowerText.text = "";
        roundInfoImage.gameObject.SetActive(false);

        ongoingRound = true;
    }