public void Reset() { GameState = new StartingGame(); Players = new List <Player>(); Cards = new List <Card>(); Resources = new List <Resource>(); OpenGames = new List <Game>(); Game = null; GameId = null; ResetGamestateEvent?.Invoke(this, null); }
IEnumerator Start() { isLoaded = false; while (!isLoaded) { if (Objects != null) { isLoaded = true; } yield return(null); } StartingGame = new StartingGame(Objects); StartingGame.StartPlayer(); }