Implement player spawning in predefined location in lobby and levels
This commit is contained in:
@@ -6,8 +6,14 @@ public class LevelInstaller : MonoInstaller
|
||||
[SerializeField]
|
||||
private Level level;
|
||||
|
||||
[SerializeField]
|
||||
private PlayerSpawner playerSpawner;
|
||||
|
||||
public override void InstallBindings()
|
||||
{
|
||||
Container.BindInstance(playerSpawner)
|
||||
.AsSingle();
|
||||
|
||||
Container.Bind<Level>()
|
||||
.FromInstance(level)
|
||||
.AsSingle();
|
||||
|
||||
Reference in New Issue
Block a user