private void DespawnCoin(IPoolObject obj) { if (obj.PoolTransform.gameObject.activeInHierarchy) { _coinsPool.Recycle(obj); } }
private void DespawnZombie(IPoolObject obj) { if (obj.PoolTransform.gameObject.activeInHierarchy) { _zombiePool.Recycle(obj); } }