Example #1
0
 private void ExecuteEffects()
 {
     if (effects.temperatureAdd != 0)
     {
         ZylinderPlanet planet = GameObject.Find("Planet").GetComponent <ZylinderPlanet>();
         planet.raiseTempOfXRandomHex(effects.temperatureAdd);
     }
     if (effects.humidityAdd != 0)
     {
         ZylinderPlanet planet = GameObject.Find("Planet").GetComponent <ZylinderPlanet>();
         planet.raiseHumidOfXRandomHex(effects.humidityAdd);
     }
     if (effects.temperatureSub != 0)
     {
         ZylinderPlanet planet = GameObject.Find("Planet").GetComponent <ZylinderPlanet>();
         planet.lowerTempOfXRandomHex(effects.temperatureSub);
     }
     if (effects.humiditySub != 0)
     {
         ZylinderPlanet planet = GameObject.Find("Planet").GetComponent <ZylinderPlanet>();
         planet.lowerHumidOfXRandomHex(effects.humiditySub);
     }
     if (effects.CatNumber == 1)
     {
         ZylinderPlanet planet = GameObject.Find("Planet").GetComponent <ZylinderPlanet>();
         planet.increaseCatastrophe(effects.CatNumber, MeteorChance);
     }
     if (effects.CatNumber == 2)
     {
         ZylinderPlanet planet = GameObject.Find("Planet").GetComponent <ZylinderPlanet>();
         planet.increaseCatastrophe(effects.CatNumber, IceAgeChance);
     }
     if (effects.CatNumber == 3)
     {
         ZylinderPlanet planet = GameObject.Find("Planet").GetComponent <ZylinderPlanet>();
         planet.increaseCatastrophe(effects.CatNumber, VolcanoChance);
     }
 }
Example #2
0
 private void ExecuteEffects()
 {
     if (effects.temperatureAdd != 0)
     {
         ZylinderPlanet planet = GameObject.Find("Planet").GetComponent <ZylinderPlanet>();
         planet.raiseTempOfXRandomHex(effects.temperatureAdd);
     }
     if (effects.humidityAdd != 0)
     {
         ZylinderPlanet planet = GameObject.Find("Planet").GetComponent <ZylinderPlanet>();
         planet.raiseHumidOfXRandomHex(effects.humidityAdd);
     }
     if (effects.temperatureSub != 0)
     {
         ZylinderPlanet planet = GameObject.Find("Planet").GetComponent <ZylinderPlanet>();
         planet.lowerTempOfXRandomHex(effects.temperatureSub);
     }
     if (effects.humiditySub != 0)
     {
         ZylinderPlanet planet = GameObject.Find("Planet").GetComponent <ZylinderPlanet>();
         planet.lowerHumidOfXRandomHex(effects.humiditySub);
     }
 }