public void Update(float delta) { rightButtonTimer -= delta; if (correctButton != null && TutorialMode && rightButtonTimer < 0 && box.IsReady()) { rightButtonTimer = 3; var uicamera = game.uiCamera; TutorialUI.SetCamera(uicamera); TutorialUI.Click(correctButton.transform.position); } }
public void Update(float delta) { rightButtonTimer -= delta; if (correctButton != null && TutorialMode && rightButtonTimer < 0 && box.IsReady() && !Finished) { rightButtonTimer = 3; var uicamera = game.uiCamera; TutorialUI.SetCamera(uicamera); TutorialUI.Click(correctButton.transform.position); } if (!TutorialMode && showOldTimer) { game.radialWidget.percentage = gameTime.Time / gameTime.Duration; } if (!TutorialMode && ReadingGameConfiguration.Instance.ShowTimer && !Finished) { game.Context.GetOverlayWidget().SetClockTime(gameTime.Time); } gameTime.Update(delta); }