Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 IEnumerator Start()
 {
     isLoaded = false;
     while (!isLoaded)
     {
         if (Objects != null)
         {
             isLoaded = true;
         }
         yield return(null);
     }
     StartingGame = new StartingGame(Objects);
     StartingGame.StartPlayer();
 }