public override void Effect() { // do the effect string selectedCityName = "City" + selectedCity.ToString(); GenerateCity currentCity = GameObject.Find(selectedCityName).GetComponent <CityScript>().city; currentCity.IncreaseEveryoneLoyalty(0.04f); }
public override void Effect() { // do the effect // Loyalty +4 to everyone. +30% boost to all TV slots and televangelists hired for the next 2 turns. string selectedCityName = "City" + selectedCity.ToString(); GenerateCity currentCity = GameObject.Find(selectedCityName).GetComponent <CityScript>().city; currentCity.IncreaseEveryoneLoyalty(0.06f); // handle cooldown }