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); }
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); }