using Reflex.Core; using UnityEngine; using UnityEngine.Pool; using UnityEngine.SceneManagement; namespace Reflex.Injectors { internal static class SceneInjector { internal static void Inject(Scene scene, Container container) { using var pooledObject1 = ListPool.Get(out var rootGameObjects); scene.GetRootGameObjects(rootGameObjects); GameObjectInjector.InjectRecursiveMany(rootGameObjects, container); } } }