void Start() // This is like the main() function. This will be executed first { _heatScript = Object.FindObjectOfType <MasterScene>(); _heatScript.initHeatMap(spawnLocations.Length); _heatScript.resetHeat(); _heatScript.updateHeatUI(); SpawnAgent(); //SetupScene(); }
public void ReduceTargetHeat() { if (_heatScript.heatMap[_randomPlatform].heat <= 0.5f) { _heatScript.heatMap[_randomPlatform].heat = 0.5f; } else { _heatScript.heatMap[_randomPlatform].heat -= heatRecution; } _heatScript.updateHeatUI(); }