public static DropLabel RequestLabel(LabelRequestContext ctx) { var l = Pooler <DropLabel> .Request(items.dropLabel, out _); l.Initialize(ctx); return(l); }
public static void Prepare(ItemReferences itemRefs) { items = itemRefs; Pooler <Item> .Prepare(); Pooler <DropLabel> .Prepare(); }
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 void Prepare() { Pooler <ParticlePooled> .Prepare(); }
public static void Prepare(GameObject ghost) { ghostPrefab = ghost; Pooler <CutinGhost> .Prepare(); }
public static BehaviorEntity RequestUninitialized(GameObject prefab, out bool isNew) => Pooler <BehaviorEntity> .Request(prefab, out isNew);
public static void Prepare(GameObject inodePref) { inodePrefab = inodePref; Pooler <BehaviorEntity> .Prepare(); }