public void RemoveItem(PoolObject obj) { remItemsLst.Add(obj); }
public void ReturnToPool(PoolObject obj) { lifeTimeContr.RemoveItem(obj); obj.GameObject.SetActive(false); pool[obj.EntityRef].Pool.Enqueue(obj); }
public void AddNewItem(PoolObject obj) { addItemsLst.Add(obj); }
private void removeItem(PoolObject obj) { LiveItems[obj.EntityRef.EntityType].Remove(obj); }
private void addNewItem(PoolObject obj) { LiveItems[obj.EntityRef.EntityType].Add(obj); }
public void ReturnObject(PoolObject obj) { objects.Enqueue(obj); obj.OnReturnedToPool(); }
public Pool(string path) { this.path = path; asset = Resources.Load <PoolObject>(path); objects = new Queue <PoolObject>(); }