public void UpdateButtonColors() { List <Player> outOfTurnPlayers = mRestaurantScript.getOutOfTurnPlayers(); List <Player> alivePlayers = mRestaurantScript.getAlivePlayers(); //Reset all colors. for (int i = 0; i < mPlayerNamecards.Count; ++i) { Button b = mPlayerNamecards[i]; if (b.enabled) { b.image.color = mPlayerNamecards[i].colors.normalColor; } else { b.image.color = mPlayerNamecards[i].colors.disabledColor; } } for (int i = 0; i < mPlayerNamecards.Count; ++i) { //If the player is selected then make them gold. if (alivePlayers[i] == mRestaurantScript.mSelectedPlayer) { mPlayerNamecards[i].image.color = Color.yellow; } //This is what it should be in the future instead of restaurant holding everything //if (alivePlayers[i].isTurn()) //{ //set golden //} //if (alivePlayers[i].outOfTurns()) //{ //Set disabled //} } }