Esempio n. 1
0
    private IEnumerator OnEndMatchRoutine(GameController.Match match)
    {
        yield return(new WaitForSeconds(2.5f));

        GameController.get.endMatchText.gameObject.SetActive(false);

        // Empate
        if (match == GameController.Match.empate)
        {
            loser.SetActive(true);
        }
        // left player won
        else if (match == GameController.Match.leftWon)
        {
            loser.SetActive(true);
        }
        // right player won
        else if (match == GameController.Match.rightWon)
        {
            if (countPhase < 3)
            {
                next.SetActive(true);
            }
            else
            {
                win.SetActive(true);
            }
        }
    }
Esempio n. 2
0
 private void OnSoloEndMatch(GameController.Match match)
 {
     StartCoroutine(OnEndMatchRoutine(match));
 }