Beispiel #1
0
 public void SendPoints(int days)
 {
     allPoints.AddTechnology(addTechnology * days);
     allPoints.AddScience(addScience * days);
     allPoints.AddArmy(addArmy * days);
     allPoints.AddPopulation(addPopulation * days);
     allPoints.AddNature(addNature * days);
     allPoints.AddPower(addEnergy * days);
     allPoints.Addfood(addFood * days);
     allPoints.AddWater(addWater * days);
 }
Beispiel #2
0
 public void BuyCompany(int number)
 {
     if (requirement.requirement == "")
     {
         musicController.CoinSound();
         allPoints.AddArmyLimit(itenLimit);
         allPoints.money -= CompanyValue;
         NumberOfCompany += number;
         CompanyValue    += SetCompanyValue;
         allPoints.AddArmy(afectArmy);
         PlayerPrefs.SetInt("ArmyCompanieValue", CompanyValue);
         allPoints.Addfood((int)(afectFood * PlayerPrefs.GetFloat("Difficult")));
         allPoints.AddWater((int)(afectWater * PlayerPrefs.GetFloat("Difficult")));
         allPoints.AddPopulation((int)(afectPopulation * PlayerPrefs.GetFloat("Difficult")));
     }
     else
     {
         musicController.ClickSound();
         errorMessage.Instantiate(requirement.requirement, 3);
     }
 }