Ejemplo n.º 1
0
 public DodgeballRound(DodgeballGame dg, int rNum, List <PlayerStat> t1, List <PlayerStat> t2)
 {
     _dbGame      = dg;
     _roundnumber = rNum;
     team1        = t1;
     team2        = t2;
 }
Ejemplo n.º 2
0
 private void StartGame()
 {
     // TODO: for now it just starts a game based on the max players on one team
     currentGameState = GameState.Playing;
     gameElements.SetActive(true);
     titleUi.SetActive(false);
     currentGame = Instantiate(dodgeballGamePrefab);
     currentGame.Setup(5, (DodgeballGame.GameType)Mathf.Max(team1.Count, team2.Count), team1, team2);
 }
Ejemplo n.º 3
0
 public void EndGame(DodgeballGame game)
 {
     currentGameState = GameState.Lobby;
     gameElements.SetActive(false);
     titleUi.SetActive(true);
     titleAnimator.SetTrigger("SlideUp");
     Destroy(currentGame);
     currentGame  = null;
     currentRound = null;
 }