/// <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)); }