Пример #1
0
 /// <summary>
 /// Same as Delayw
 /// </summary>
 /// <param name="senfChain"></param>
 /// <param name="seconds"></param>
 /// <returns></returns>
 public static IExecuteNodeChain Wait(this IExecuteNodeChain senfChain, float seconds)
 {
     return(senfChain.Append(DelayNode.Allocate(seconds)));
 }
 public static void Delay <T>(this T selfBehaviour, float seconds, Action delayEvent) where T : MonoBehaviour
 {
     selfBehaviour.ExecuteNode(DelayNode.Allocate(seconds, delayEvent));
 }
Пример #3
0
 public static IExecuteNodeChain Delay(this IExecuteNodeChain senfChain, float seconds, Action action)
 {
     return(senfChain.Append(DelayNode.Allocate(seconds, action)));
 }