Пример #1
0
 public void SetExpBarOriginal()
 {
     if (ExpBar.Value == 1 && GlobalManager.receiveCoinNum >= GlobalManager.maxCoin)
     {
         GlobalManager.ExpBarControll();
         GlobalManager.levelNum++;
         ExpBar.Value = 0;
         GlobalManager.receiveCoinNum = 0;
         UpgradeEffect();
         LevelNum();
         EventsController.Instance.DropCoinsEvent();
         CoinsController.Instance.DropCoin();
         GlobalManager.SaveAllToPlayerPrefs();
     }
 }