示例#1
0
        public static MethodDelay InvokeRepeating(this MonoBehaviour mono, Action <MonoBehaviour> action, TimeSpan time, int limit = -1)
        {
            MethodDelay delay = new MethodDelay(limit, mono, time, action);

            delay.Run();
            return(delay);
        }
示例#2
0
        public static MethodDelay Invoke(this MonoBehaviour mono, Action <MonoBehaviour> action, TimeSpan time)
        {
            MethodDelay delay = new MethodDelay(mono
                                                , time, action);

            delay.Run();
            return(delay);
        }