private void Create()
        {
            AsteroidController asteroidController = AsteroidPool.GetAsteroid();

            asteroidController.Move();
            asteroidController.asteroidView.ScoreEvent += OnScore;
        }
        public void PutObject(AsteroidController currentObject)
        {
            objectStack.Push(currentObject);
            Vector3 position = new Vector3(Random.Range(-_maxPosition.x, _maxPosition.x), _maxPosition.y, 0);

            objectStack.Peek().OffObject(position);
        }
 public static void PutAsteroid(AsteroidController asteroid)
 {
     asteroid.asteroidView.ScoreEvent = null;
     pool.PutObject(asteroid);
 }
        public static AsteroidController GetAsteroid()
        {
            AsteroidController newAsteroid = pool.GetObject();

            return(newAsteroid);
        }