public DelayedAction(double delay, DelayedActionCallback callback, object context = null) { this.context = context; this.callback = callback; this.delay = delay; this.startTime = Time.time; pool.Add(this); }
public static DelayedAction InvokeMethod(double delay, DelayedActionCallback callback, object context = null) { return(new DelayedAction(delay, callback, context)); }