Esempio n. 1
0
        Poolable Clone()
        {
            GameObject clone = Instantiate(prefab);
            var        p     = Poolable.AddPoolableComponent(clone, this);

            return(p);
        }
Esempio n. 2
0
        Poolable Clone()
        {
            GameObject clone = Instantiate(prefab);
            var        p     = Poolable.AddPoolableComponent(clone, this, totalPoolableObjects.ToString());

            totalPoolableObjects++;
            return(p);
        }