public WaitForKey(KeyCode keyCode, TutorialResult result, float timeout = 10) { this.keyCode = keyCode; this.wasTimeout = result; this.timeUntilTimeout = Time.time + timeout; }
public WaitWhile(Func <bool> condition, TutorialResult result, float timeout = 10) { this.condition = condition; this.result = result; this.timeUntilTimeout = Time.time + timeout; }