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