示例#1
0
 public static Promise WaitOneFrame(this MonoBehaviour behaviour)
 {
     return(behaviour.CreatePromise().WaitOneFrame());
 }
示例#2
0
 public static Promise WaitRealtime(this MonoBehaviour behaviour, float time)
 {
     return(behaviour.CreatePromise().WaitRealtime(time));
 }
示例#3
0
 public static Promise Then(this MonoBehaviour behaviour, Action action)
 {
     return(behaviour.CreatePromise().Then(action));
 }
示例#4
0
 public static Promise Then(this MonoBehaviour behaviour, Action <object, object> action, object parameterFirst, object parameterSecond)
 {
     return(behaviour.CreatePromise().Then(action, parameterFirst, parameterSecond));
 }
示例#5
0
 public static Promise Then(this MonoBehaviour behaviour, IEnumerator coroutine)
 {
     return(behaviour.CreatePromise().Then(coroutine));
 }