예제 #1
0
 private void Start()
 {
     PlayerData.Pull();
     //PlayerData.Wipe();// for debugging until the ui is done
     if (PlayerData.myWallet.IsEmpty())
     {
         PlayerData.myWallet += new Wallet()
         {
             Coins = 0, Time = 60, Tokens = 10
         };                                                                         // for now, some starting capitol
     }
     if (PlayerData.Level == 0)
     {
         PlayerData.Level = 1;
     }
     if (PlayerData.Stage == 0)
     {
         PlayerData.Stage = 1;
     }
     PlayerData.Push();
     GameProgression.InitGameProgression(this.Levels);
     ProgressPanel.Init(this.Levels, PlayerData);
     currentTimeValues = new TimeUpdateInfo();
     ChooseMission();
 }
예제 #2
0
 private void Start()
 {
     PlayerData.Pull();
     PlayerData.Wipe();// for debugging until the ui is done
     if (PlayerData.Level == 0)
     {
         PlayerData.Level = 1;
     }
     if (PlayerData.Stage == 0)
     {
         PlayerData.Stage = 1;
     }
     PlayerData.Push();
     GameProgression.InitGameProgression(this.Levels);
     ProgressPanel.Init(this.Levels);
 }