private void ResetAllFlyingBalloons()
        {
            foreach (var balloon in _flyingBalloons)
            {
                balloon.Reset();
                _pool.Release(balloon);
            }

            _flyingBalloons.Clear();
        }
Example #2
0
 public void Reset()
 {
     foreach (var stone in _stonesById.Values)
     {
         stone.Reset();
         _stonePool.Release(stone);
     }
     _stonesById.Clear();
 }