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); } } }
private void OnSoloEndMatch(GameController.Match match) { StartCoroutine(OnEndMatchRoutine(match)); }