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); }
public void BuyCompany(int number) { if (requirement.requirement == "") { musicController.CoinSound(); allPoints.money -= CompanyValue; NumberOfCompany += number; CompanyValue += SetCompanyValue; PlayerPrefs.SetInt("NatureCompanieValue", CompanyValue); allPoints.AddPopulation((int)(afectPopulation * PlayerPrefs.GetFloat("Difficult"))); allPoints.AddWater((int)(afectWater * PlayerPrefs.GetFloat("Difficult"))); allPoints.AddNature(afectNature); } else { musicController.ClickSound(); errorMessage.Instantiate(requirement.requirement, 6); } }
public void BuyCompany(int number) { if (requirement.requirement == "") { musicController.CoinSound(); allPoints.AddPopulationLimit(itenLimit); allPoints.money -= CompanyValue; NumberOfCompany += number; CompanyValue += SetCompanyValue; PlayerPrefs.SetInt("PopulationCompanieValue", CompanyValue); allPoints.AddArmy((int)(afectArmy * PlayerPrefs.GetFloat("Difficult"))); allPoints.AddWater((int)(afectWater * PlayerPrefs.GetFloat("Difficult"))); allPoints.Addfood((int)(afectFood * PlayerPrefs.GetFloat("Difficult"))); allPoints.AddPopulation(afectPopulation); allPoints.AddPower((int)(afectEnergy * PlayerPrefs.GetFloat("Difficult"))); allPoints.AddNature((int)(afectNature * PlayerPrefs.GetFloat("Difficult"))); } else { musicController.ClickSound(); errorMessage.Instantiate(requirement.requirement, 2); } }