public static DropLabel RequestLabel(LabelRequestContext ctx) { var l = Pooler <DropLabel> .Request(items.dropLabel, out _); l.Initialize(ctx); return(l); }
private static Item Request(GameObject prefab, ItemRequestContext ctx) { var i = Pooler <Item> .Request(prefab, out _); i.Initialize(ctx.source, ctx.offset); return(i); }
public static CutinGhost Request(Vector2 loc, Vector2 dir, Cutin.GhostConfig cfg) { var cg = Pooler <CutinGhost> .Request(ghostPrefab, out _); cg.Initialize(loc, dir, cfg); return(cg); }
public static ParticlePooled Request(GameObject prefab, Vector2 location) { ParticlePooled n = Pooler <ParticlePooled> .Request(prefab, out bool _); n.Initialize(location); return(n); }
public static BehaviorEntity RequestUninitialized(GameObject prefab, out bool isNew) => Pooler <BehaviorEntity> .Request(prefab, out isNew);