示例#1
0
    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();
    }
示例#2
0
    public void ReduceTargetHeat()
    {
        if (_heatScript.heatMap[_randomPlatform].heat <= 0.5f)
        {
            _heatScript.heatMap[_randomPlatform].heat = 0.5f;
        }
        else
        {
            _heatScript.heatMap[_randomPlatform].heat -= heatRecution;
        }

        _heatScript.updateHeatUI();
    }