Example #1
0
 public static void Delay <T>(this T selfBehaviour, float seconds, System.Action delayEvent) where T : MonoBehaviour
 {
     selfBehaviour.ExecuteNode(DelayAction.Allocate(seconds, delayEvent));
 }
Example #2
0
 /// <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)));
 }