Reimplement solo and mp rig switching
This commit is contained in:
@@ -24,9 +24,6 @@ public class GlobalInstaller : MonoInstaller
|
||||
[SerializeField]
|
||||
private GameObject gameManagerPrefab;
|
||||
|
||||
[SerializeField]
|
||||
private GameObject playerPrefab;
|
||||
|
||||
[SerializeField]
|
||||
private GameObject uiManagerPrefab;
|
||||
|
||||
@@ -81,13 +78,6 @@ public class GlobalInstaller : MonoInstaller
|
||||
Container.BindInstance(networkManager)
|
||||
.AsSingle();
|
||||
|
||||
var playerGO = Instantiate(playerPrefab);
|
||||
playerGO.name = playerPrefab.name;
|
||||
var playerComponent = playerGO.GetComponent<PlayerComponent>();
|
||||
|
||||
Container.BindInstance(playerComponent)
|
||||
.AsSingle();
|
||||
|
||||
Container.Bind<HVRInputModule>()
|
||||
.FromComponentInNewPrefab(uiManagerPrefab)
|
||||
.AsSingle()
|
||||
|
||||
Reference in New Issue
Block a user