Create() public static method

public static Create ( Callback cb, int milliseconds ) : DelayedCall
cb Callback
milliseconds int
return DelayedCall
示例#1
0
        // Token: 0x06000040 RID: 64 RVA: 0x00002F50 File Offset: 0x00001150
        public static DelayedCall <T> Start(DelayedCall <T> .Callback cb, T data, int milliseconds)
        {
            DelayedCall <T> delayedCall = DelayedCall <T> .Create(cb, data, milliseconds);

            delayedCall.Start();
            return(delayedCall);
        }
示例#2
0
        public static DelayedCall <T1, T2, T3> Start(DelayedCall <T1, T2, T3> .Callback cb, T1 data1, T2 data2, T3 data3, int milliseconds)
        {
            DelayedCall <T1, T2, T3> delayedCall = DelayedCall <T1, T2, T3> .Create(cb, data1, data2, data3, milliseconds);

            delayedCall.Start();
            return(delayedCall);
        }
        public static DelayedCall Start(DelayedCall.Callback cb, int milliseconds)
        {
            DelayedCall delayedCall = DelayedCall.Create(cb, milliseconds);

            if (milliseconds > 0)
            {
                delayedCall.Start();
            }
            else if (milliseconds == 0)
            {
                delayedCall.FireNow();
            }
            return(delayedCall);
        }