Change names of objects spawned by installers

This commit is contained in:
2024-08-19 22:30:41 +02:00
parent 618a284473
commit c393a96653
2 changed files with 26 additions and 1 deletions

View File

@@ -15,6 +15,10 @@ public class LevelInstaller : MonoInstaller
Container.Bind<LevelManager>()
.FromComponentsInNewPrefabResource("Managers/LevelManager")
.AsSingle()
.OnInstantiated<LevelManager>((ctx, obj) =>
{
obj.name = "LevelManager";
})
.NonLazy();
}
}