private void Start() { _loadingScreen.ShowConnectingMessage(); GameUIManager.gameObject.SetActive(false); ServerCommandHandlers.Init(); /*InitMap(new Vector2(5, 5)); * Teams["Team A"] = new Team(GameManager.Instance.Teams.Count, "Team A"); * Teams["Team B"] = new Team(GameManager.Instance.Teams.Count, "Team B"); * Teams["Team C"] = new Team(GameManager.Instance.Teams.Count, "Team C"); * Teams["Team D"] = new Team(GameManager.Instance.Teams.Count, "Team D"); * AddPlayer(0, "Team A", 1, new Vector2(0, 0), (Player.Orientation.Left)); * Players[0].Level = 4;*/ }
private void Update() { if (_gameInterrupted) { GoBackToMenu(); } if (_gameEnded && Time.time > _gameEndTime + _endScreenDuration) { GoBackToMenu(); } else { ServerCommandHandlers.zappy_sync_poll(); } }