Example #1
0
        public static DropLabel RequestLabel(LabelRequestContext ctx)
        {
            var l = Pooler <DropLabel> .Request(items.dropLabel, out _);

            l.Initialize(ctx);
            return(l);
        }
Example #2
0
        private static Item Request(GameObject prefab, ItemRequestContext ctx)
        {
            var i = Pooler <Item> .Request(prefab, out _);

            i.Initialize(ctx.source, ctx.offset);
            return(i);
        }
Example #3
0
        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);
        }
Example #4
0
        public static ParticlePooled Request(GameObject prefab, Vector2 location)
        {
            ParticlePooled n = Pooler <ParticlePooled> .Request(prefab, out bool _);

            n.Initialize(location);
            return(n);
        }
Example #5
0
 public static BehaviorEntity RequestUninitialized(GameObject prefab, out bool isNew) =>
 Pooler <BehaviorEntity> .Request(prefab, out isNew);