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

            l.Initialize(ctx);
            return(l);
        }
Exemplo n.º 2
0
        public static void Prepare(ItemReferences itemRefs)
        {
            items = itemRefs;
            Pooler <Item> .Prepare();

            Pooler <DropLabel> .Prepare();
        }
Exemplo n.º 3
0
        private static Item Request(GameObject prefab, ItemRequestContext ctx)
        {
            var i = Pooler <Item> .Request(prefab, out _);

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

            n.Initialize(location);
            return(n);
        }
Exemplo n.º 6
0
 public static void Prepare()
 {
     Pooler <ParticlePooled> .Prepare();
 }
Exemplo n.º 7
0
 public static void Prepare(GameObject ghost)
 {
     ghostPrefab = ghost;
     Pooler <CutinGhost> .Prepare();
 }
Exemplo n.º 8
0
 public static BehaviorEntity RequestUninitialized(GameObject prefab, out bool isNew) =>
 Pooler <BehaviorEntity> .Request(prefab, out isNew);
Exemplo n.º 9
0
 public static void Prepare(GameObject inodePref)
 {
     inodePrefab = inodePref;
     Pooler <BehaviorEntity> .Prepare();
 }