コード例 #1
0
    public override void Effect()
    {
        // do the effect
        string       selectedCityName = "City" + selectedCity.ToString();
        GenerateCity currentCity      = GameObject.Find(selectedCityName).GetComponent <CityScript>().city;

        currentCity.IncreaseEveryoneLoyalty(0.04f);
    }
コード例 #2
0
    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
    }