Beispiel #1
0
 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);
 }
Beispiel #2
0
 public static DelayedAction InvokeMethod(double delay, DelayedActionCallback callback, object context = null)
 {
     return(new DelayedAction(delay, callback, context));
 }