Exemplo n.º 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);
        }
Exemplo n.º 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);
        }