/// <summary> /// Same as Delayw /// </summary> /// <param name="senfChain"></param> /// <param name="seconds"></param> /// <returns></returns> public static IActionChain Wait(this IActionChain senfChain, float seconds) { return(senfChain.Append(DelayAction.Allocate(seconds))); }
public static void Delay <T>(this T selfBehaviour, float seconds, System.Action delayEvent) where T : MonoBehaviour { selfBehaviour.ExecuteNode(DelayAction.Allocate(seconds, delayEvent)); }