public void startPlantsInParallel(string climate) { PlantAnimation animation = GameObject.Find("Terrain").GetComponent <PlantAnimation>(); animation.PlantsInParallel(climate); //animation.countPixels(); }
public void pauseSimulation() { PlantAnimation animation = GameObject.Find("Terrain").GetComponent <PlantAnimation>(); if (!paused) { paused = true; if (animation.type == "PlantsInParallel") { animation.plantsInParallel = false; } else if (animation.type == "ClimateInParallel") { animation.climateInParallel = false; } else { animation.bothInParallel = false; } } else { //game is paused and we want to start it again paused = false; if (animation.type == "PlantsInParallel") { animation.plantsInParallel = true; } else if (animation.type == "ClimateInParallel") { animation.climateInParallel = true; } else { animation.bothInParallel = true; } } }
public void startBothInParallel() { PlantAnimation animation = GameObject.Find("Terrain").GetComponent <PlantAnimation>(); animation.BothInParallel(); }
public void startClimateInParallel(string species) { PlantAnimation animation = GameObject.Find("Terrain").GetComponent <PlantAnimation>(); animation.ClimateInParallel(species); }