Пример #1
0
 public void Upgrade()
 {
     MoneyTracker.ChangeMoneyCount(-utensil.upgradeCost);
     utensil.upgradeNum++;
     utensil.cookTime    /= 2;
     utensil.upgradeCost *= 5;
     objectSprite.sprite  = RestaurantMain.GetUpgradeSprite(objectSprite.sprite);
 }
Пример #2
0
    public void Train()
    {
        if (data.isTraining || data.timesTrained >= 10 || PlayerData.playerData.playerMoney < trainingCost)
        {
            return;
        }
        MoneyTracker.ChangeMoneyCount(-trainingCost);
        data.isTraining = true;
        float time = 5.0f + 10.0f * data.timesTrained;

        data.trainEndTime           = DateTime.Now.AddSeconds(time);
        trainingButton.interactable = false;
    }
Пример #3
0
 //collect the money from the shop
 public int CollectMoney()
 {
     //the money will be the time spent open * the added income of ever cat working there
     //adding up the income/min
     if (!data.isOpen)
     {
         MoneyTracker.ChangeMoneyCount(data.storedIncome);
         int toRet = data.storedIncome;
         data.storedIncome = 0;
         openText.text     = "Not Open";
         if (data.stars < Variables.MAX_STAR_LEVEL && data.starProgress > 1)
         {
             data.starProgress -= 1;
             AddStar();
         }
         return(toRet);
     }
     return(0);
 }
Пример #4
0
 public static void AddMoney(int n)
 {
     MoneyTracker.ChangeMoneyCount(n);
 }