public void OnConfirmButtonClicked() { if (turnManagerScript.getCurrentPlayerIndex() < players.Count - 1) { turnManagerScript.goToNextPlayer(); SceneManager.LoadScene(DinnerPartyScenes.PASS_PATH); } else { SceneManager.LoadScene(DinnerPartyScenes.START_GAME_PATH); } }
void Start() { turnManagerScript = GameManagerScript.GetInstance().GetComponent <TurnManagerScript>(); players = turnManagerScript.getPlayers(); if (turnManagerScript.getCurrentPlayerIndex() <= players.Count - 1) { ShowPlayerToPassTo(); } }
private void ShowPlayerToPassTo() { //In the future the text could be flashing or something :D mPassText.text = "PASS TO " + players[turnManagerScript.getCurrentPlayerIndex()].getName().ToUpper() + " SO THEY CAN SEE THEIR ROLE."; }