Example #1
0
 //FixedUpdate is called on a regular time interval
 private void FixedUpdate()
 {
     if (curNode.showMenu() == 1)
     {
         UI.SetActive(true);
     }
     else if (curNode.showMenu() == -1)
     {
         UI.SetActive(false);
     }
     if (counter == speed)
     {
         curNode.Draw();
         counter = 1;
     }
     counter++;
 }