示例#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;
 }