Beispiel #1
0
        public static TimeItem Allocate(Action <int> callback, float delayTime, int repeatCount = 1)
        {
            TimeItem item = SafeObjectPool <TimeItem> .Instance.Allocate();

            item.Set(callback, delayTime, repeatCount);
            return(item);
        }
Beispiel #2
0
        public static TimeItem Allocate(QVoidDelegate.WithGeneric <int> callback, float delayTime, int repeatCount = 1)
        {
            TimeItem item = ObjectPool <TimeItem> .Instance.Allocate();

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