Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (!myCanvas.enabled && goal.levelWon())
     {
         myCanvas.enabled = true;
         foreach (GraphicColorLerp g in colorLerps)
         {
             g.startColorChange();
         }
         eventSystem.SetSelectedGameObject(continueButton);
     }
     else if (myCanvas.enabled)
     {
         updateLevelWonUI();
     }
 }