private void SendToAllAboutNewPlayer(GameBattlePlayerInfo player)
        {
            var newUnitMessage = new TankRespawnMsg();

            newUnitMessage.Opponent = player;
            newUnitMessage.ClientId = player.UnitId;
            Server.SendToAllExcept(newUnitMessage, newUnitMessage.ClientId);
        }
Exemplo n.º 2
0
        private void SendToAllAboutNewPlayer(ConnectToBattleRequestMsg message,
                                             GameBattlePlayerInfo player)
        {
            var newUnitMessage = new TankRespawnMsg();

            newUnitMessage.Oponent  = player;
            newUnitMessage.ClientId = player.UnitId;
            Server.SendToAllExept(newUnitMessage, newUnitMessage.ClientId);
        }
Exemplo n.º 3
0
 private void OnOponentTankRespawn(TankRespawnMsg message)
 {
     CreateAndRespawnOponent(message.Opponent);
 }