// Update is called once per frame
 void Update()
 {
     // Update the graph, this updates min/max/current/avg
     if (Graph != null)
     {
         Graph.Update();
     }
     else
     {
         Graph = new GraphManagerInstance();
         CreateGlobalObjects();
     }
 }
    // Use this for initialization
    void Start()
    {
        // Create static instance
        Graph = new GraphManagerInstance();

        // Initialize the default material/shader used for the rendering
        if (!m_GraphMaterial)
        {
            m_GraphMaterial           = new Material(Shader.Find("GPUGraph/Graph"));
            m_GraphMaterial.hideFlags = HideFlags.HideAndDontSave;
        }

        CreateGlobalObjects();
    }
Beispiel #3
0
    // Use this for initialization
    public void stopGraph()
    {
        Graph = null;

        Destroy(GraphManagerUI);
    }