예제 #1
0
    //debug
    public void PrintCarColors()
    {
        int i = 0;

        foreach (CarStatics.ColorEnum color in selected_player_colors.Values)
        {
            print("Player " + i.ToString() + CarStatics.ColorToString(color));
        }
    }
예제 #2
0
 public string GetCarColor(int player_index)
 {
     Assert.IsTrue(player_index <selected_player_colors.Count && player_index> -1, "Player Index: " + player_index.ToString() + " is out of bounds in ColorHolder.cs");
     return(CarStatics.ColorToString(selected_player_colors[player_index]));
 }