Пример #1
0
        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);
            }
        }
Пример #2
0
        public static void StartGame(StartGameMessage message)
        {
            state = ClientState.Gaming;

            gameForm.ReDraw(message.you, message.enemy, message.turn);
        }