Ejemplo n.º 1
0
        public void startGame(List <ConnectedPlayer> players)
        {
            protocol     = gameMaster.protocol;
            gamePlaying  = true;
            this.players = players;
            team1        = GameOverlord.getEnemyList(2);
            team2        = GameOverlord.getEnemyList(1);
            StartCoroutine(updateGameStatus());


            allTeams.AddRange(team1);
            allTeams.AddRange(team2);
            broadcastBoard(new BoardUpdate(allTeams, new List <Soldier>(), 0, Time.time), true);
        }
 public override void initProtocol(CommProtocol protocol)
 {
     this.protocol = (SoldiersProtocol)protocol;
 }