// 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(); } }