public virtual void Recycle() { if (GetObj().transform.parent == null) { if (recycleAble == true) { BulletPool.Put(gameObject); gameObject.SetActive(false); } } }
public override void Recycle() { if (transform.parent == null) { if (recycleAble == true) { Transform trail = transform.GetChild(0); trail.SetParent(null); Destroy(trail.gameObject, 3); BulletPool.Put(gameObject); gameObject.SetActive(false); } } }