public void Release() { if (_pool != null) { var gameObject = _gameObject; _gameObject = null; _pool.Destroy(gameObject); } }
public void Release() { if (_pool != null) { var gameObject = _gameObject; _gameObject = null; _pool.completed -= OnPoolCompleted; _pool.Destroy(gameObject); } }