Ejemplo n.º 1
0
 // Update is called once per frame
 public void Update()
 {
     if (transform.childCount != childrenCount)
     {
         Initialize();
         childrenCount = transform.childCount;
     }
     if (drawGraph)
     {
         if (Application.isPlaying)
         {
             GraphVisualizer.Redraw(this);
         }
         //Debug.Log("Graph is updated");
         DrawGraph();
     }
 }