Пример #1
0
            public static TimeItem Allocate(Run <int> callback, float delayTime, int repeatCount = 1)
            {
                TimeItem item = ObjectPool <TimeItem> .S.Allocate();

                item.Set(callback, delayTime, repeatCount);
                return(item);
            }
Пример #2
0
        public static TimeItem Allocate(PTVoidDelegate.WithGeneric <int> callback, float delayTime, int repeatCount = 1)
        {
            TimeItem item = SafeObjectPool <TimeItem> .Instance.Allocate();

            item.Set(callback, delayTime, repeatCount);
            return(item);
        }