Exemplo n.º 1
0
 /*
  * called by a button for player
  */
 public void endTurn()
 {
     // current player will become next player
     // dice will be enabled
     GUImanager.disableGlowofPlayer(currentPlayerIndex);
     GUImanager.DisableButton(BUTTON_TYPE.BUY);
     currentPlayerIndex += 1;
     currentPlayerIndex %= (short)players.Length;
     currentPlayer       = players[currentPlayerIndex];
     DiceManager.resetDices();
     GUImanager.EnableButton(BUTTON_TYPE.THROW_DICE);
     GUImanager.removeImage(); // temprory
     startTurn();
     // Also, throw button should be enabled, and made interacable
 }