Implement player spawning in predefined location in lobby and levels
This commit is contained in:
@@ -3,8 +3,14 @@ using Zenject;
|
||||
|
||||
public class LobbyInstaller : MonoInstaller
|
||||
{
|
||||
[SerializeField]
|
||||
private PlayerSpawner playerSpawner;
|
||||
|
||||
public override void InstallBindings()
|
||||
{
|
||||
Container.BindInstance(playerSpawner)
|
||||
.AsSingle();
|
||||
|
||||
Container.Bind<LobbyManager>()
|
||||
.FromComponentsInNewPrefabResource("Managers/LobbyManager")
|
||||
.AsSingle()
|
||||
|
||||
Reference in New Issue
Block a user