public virtual DelayedCall RepeatCall(DelayedCall.Call call, float delay, float duration, int repeatCount) { if (call == null) { return(null); } DelayedCall delayedCall = DelayedCall.Pop(); delayedCall.juggler = this; delayedCall.Init( delay, duration, repeatCount, call, null ); Add(delayedCall); return(delayedCall); }
public virtual DelayedCall UpdateCall(DelayedCall.Call call, float delay, float duration) { if (call == null) { return(null); } DelayedCall delayedCall = DelayedCall.Pop(); delayedCall.juggler = this; delayedCall.Init( delay, duration, DelayedCall.k_EveryFrame, call, null ); Add(delayedCall); return(delayedCall); }
public virtual DelayedCall DelayCall(DelayedCall.Call call, float delay) { if (call == null) { return(null); } DelayedCall delayedCall = DelayedCall.Pop(); delayedCall.juggler = this; delayedCall.Init( delay, 0.0f, DelayedCall.k_OneShot, call, null ); Add(delayedCall); return(delayedCall); }