void Start() { for (int i = 0; i < gamers.Length; i++) { StartGameMessage message = new StartGameMessage ( gamers[i].client.gameField, gamers[(i + 1) % gamers.Length].client.gameField.GetForEnemy(), gamers[i].turn ); gamers[i].client.Send(message); } }
public static void StartGame(StartGameMessage message) { state = ClientState.Gaming; gameForm.ReDraw(message.you, message.enemy, message.turn); }