public override void Use(HexCell target = null)
 {
     if (target.City)
     {
         CityState cityState = target.City.GetCityState();
         cityState.AdjustInfluenceForAllExcluding(gameObject.GetComponent <Unit>().GetPlayer(), (config as PropagandaConfig).GetInfluence());
         cityState.CheckInfluence();
     }
     PlayParticleEffect();
     PlayAbilitySound();
     PlayAnimation();
 }
Esempio n. 2
0
 public override void Use(HexCell target = null)
 {
     if (target.City)
     {
         CityState cityState = target.City.GetCityState();
         cityState.AdjustInfluence(gameObject.GetComponent <Unit>().GetPlayer(), (config as BribeConfig).GetInfluence());
         cityState.CheckInfluence();
     }
     if (target.IsVisible)
     {
         PlayParticleEffect();
         PlayAbilitySound();
         PlayAnimation();
         if (gameObject.GetComponent <Unit>().GetPlayer().IsHuman)
         {
             PlayTextEffect((config as BribeConfig).GetInfluence().ToString(), target, Color.yellow);
         }
         else
         {
             PlayTextEffect((config as BribeConfig).GetInfluence().ToString(), target, Color.blue);
         }
     }
 }