private void OnBallOutOfBounds(BallOutOfBoundsEventArgs e) { _simpleObjectPool.ReturnObjectToPool(e.Ball); }
public void Recycle(GameObject gameObject) { gameObject.GetComponent <IBallController>().ResetBall(); _simpleObjectPool.ReturnObjectToPool(gameObject); }