Exemplo n.º 1
0
    public void OnDisable()
    {
        if (cam)
        {
            DestroyImmediate(cam.gameObject);
        }

        Heatmap.DestroyHeatmapObjects();
    }
    public void OnGUI()
    {
        if (GUI.Button(resetRect, "Reset"))
        {
            Heatmap.DestroyHeatmapObjects();
            ClearPoints();
#if !UNITY_WEBPLAYER
            //usePresetCoordinates = false;
#endif
        }

#if !UNITY_WEBPLAYER
        if (GUI.Button(screenshotRect, "Screenshot"))
        {
            StartCoroutine(TakeScreenshot());
        }
#endif
    }