Ejemplo n.º 1
0
        public static Actor Create(GameObject prefab, Transform parent, Vector3 position = default, bool pooled = false)
        {
            var tr    = pooled ? Obj.Spawn(Pool.Entities, prefab, parent, position) : Obj.Spawn(prefab, parent, position);
            var actor = tr.AddGetActor();

            // actor.isPooled = pooled;
            actor.Launch();

            return(actor);
        }