// Use this for initialization void Start() { isSimulating = false; isGenerating = false; actionMode = ModeAction.ADD; windDirection = 0; windSpeed = 0; activeTerrain = Terrain.activeTerrain; fireSim = activeTerrain.GetComponent <FireSimulation>(); ClearMap(); fireSim.SetSimulationActive(isSimulating); }
private void StartSimulation() { isSimulating = true; fireSim.SetSimulationActive(isSimulating); }