protected static PrepareDCObject ( DelayedCall dc, int milliseconds, bool async ) : void | ||
dc | DelayedCall | |
milliseconds | int | |
async | bool | |
리턴 | void |
public static DelayedCall CreateAsync(DelayedCall.Callback cb, int milliseconds) { DelayedCall delayedCall = new DelayedCall(); DelayedCall.PrepareDCObject(delayedCall, milliseconds, true); delayedCall.callback = cb; return(delayedCall); }
// Token: 0x0600003E RID: 62 RVA: 0x00002EF8 File Offset: 0x000010F8 public static DelayedCall <T> Create(DelayedCall <T> .Callback cb, T data, int milliseconds) { DelayedCall <T> delayedCall = new DelayedCall <T>(); DelayedCall.PrepareDCObject(delayedCall, milliseconds, false); delayedCall.callback = cb; delayedCall.data = data; return(delayedCall); }
public DelayedCall(DelayedCall.Callback cb, int milliseconds) : this() { DelayedCall.PrepareDCObject(this, milliseconds, false); this.callback = cb; if (milliseconds > 0) { this.Start(); } }
public static DelayedCall <T1, T2> CreateAsync(DelayedCall <T1, T2> .Callback cb, T1 data1, T2 data2, int milliseconds) { DelayedCall <T1, T2> delayedCall = new DelayedCall <T1, T2>(); DelayedCall.PrepareDCObject(delayedCall, milliseconds, true); delayedCall.callback = cb; delayedCall.data1 = data1; delayedCall.data2 = data2; return(delayedCall); }
public DelayedCall(DelayedCall <object> .Callback cb, int milliseconds, object data) : this() { DelayedCall.PrepareDCObject(this, milliseconds, false); this.oldCallback = cb; this.oldData = data; if (milliseconds > 0) { this.Start(); } }
public static DelayedCall <T1, T2, T3> Create(DelayedCall <T1, T2, T3> .Callback cb, T1 data1, T2 data2, T3 data3, int milliseconds) { DelayedCall <T1, T2, T3> delayedCall = new DelayedCall <T1, T2, T3>(); DelayedCall.PrepareDCObject(delayedCall, milliseconds, false); delayedCall.callback = cb; delayedCall.data1 = data1; delayedCall.data2 = data2; delayedCall.data3 = data3; return(delayedCall); }
public DelayedCall(DelayedCall <object> .Callback cb, object data) : this() { DelayedCall.PrepareDCObject(this, 0, false); this.oldCallback = cb; this.oldData = data; }
public DelayedCall(DelayedCall.Callback cb) : this() { DelayedCall.PrepareDCObject(this, 0, false); this.callback = cb; }