Beispiel #1
0
 void LoadPlayer()
 {
     var playerStore = new PlayerStore(this);
     if (playerStore.playerPersisted) {
       player = playerStore.Load();
       newGame = false;
     } else {
       var playerGen = new PlayerGenerator(this);
       player = playerGen.Generate();
     }
 }