public DodgeballRound(DodgeballGame dg, int rNum, List <PlayerStat> t1, List <PlayerStat> t2) { _dbGame = dg; _roundnumber = rNum; team1 = t1; team2 = t2; }
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); }
public void EndGame(DodgeballGame game) { currentGameState = GameState.Lobby; gameElements.SetActive(false); titleUi.SetActive(true); titleAnimator.SetTrigger("SlideUp"); Destroy(currentGame); currentGame = null; currentRound = null; }