コード例 #1
0
 public void SendMoney(int days)
 {
     if (!freezeEconomy)
     {
         moneySend = totalMoney * days;
         allPoints.AddMoney(moneySend);
         moneySend = 0;
     }
     else
     {
         freezeDays += days;
         if (freezeDays >= limitDay)
         {
             moneySend = totalMoney * days;
             allPoints.AddMoney(moneySend);
             moneySend  = 0;
             limitDay  += 5;
             freezeDays = 0;
         }
     }
 }
コード例 #2
0
 public void RemovePoints(bool Continue)
 {
     if (!Continue)
     {
         if (allPoints.money >= moneyRequired)
         {
             allPoints.AddPopulation(pop);
             allPoints.AddNature(nat);
             allPoints.AddPower(power);
             allPoints.Addfood(food);
             allPoints.AddMoney(-moneyRequired);
             EnablePanel(false);
         }
     }
     else
     {
         allPoints.AddPopulation(pop);
         allPoints.AddNature(nat);
         allPoints.AddPower(power);
         allPoints.Addfood(food);
     }
 }