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