using UnityEngine; using Zenject; public class LobbyInstaller : MonoInstaller { public override void InstallBindings() { Container.Bind() .FromComponentsInNewPrefabResource("Managers/LobbyManager") .AsSingle() .OnInstantiated((ctx, obj) => { obj.name = "LobbyManager"; }) .NonLazy(); } }