예제 #1
0
 public void OnConfirmButtonClicked()
 {
     if (turnManagerScript.getCurrentPlayerIndex() < players.Count - 1)
     {
         turnManagerScript.goToNextPlayer();
         SceneManager.LoadScene(DinnerPartyScenes.PASS_PATH);
     }
     else
     {
         SceneManager.LoadScene(DinnerPartyScenes.START_GAME_PATH);
     }
 }
예제 #2
0
    void Start()
    {
        turnManagerScript = GameManagerScript.GetInstance().GetComponent <TurnManagerScript>();
        players           = turnManagerScript.getPlayers();

        if (turnManagerScript.getCurrentPlayerIndex() <= players.Count - 1)
        {
            ShowPlayerToPassTo();
        }
    }
예제 #3
0
 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.";
 }