Reimplement solo and mp rig switching
This commit is contained in:
@@ -70,6 +70,8 @@ public class HandMenuUI : NetworkBehaviour
|
||||
|
||||
private void Start()
|
||||
{
|
||||
this.Inject();
|
||||
|
||||
if (uiInput == null) return;
|
||||
|
||||
canvas = GetComponent<Canvas>();
|
||||
@@ -88,14 +90,6 @@ public class HandMenuUI : NetworkBehaviour
|
||||
settingsButton.onClick.AddListener(() => SettingsClicked());
|
||||
}
|
||||
|
||||
public override void OnNetworkSpawn()
|
||||
{
|
||||
base.OnNetworkSpawn();
|
||||
|
||||
// Player components need to be injected manualy again, because NetworkManager doesn't inject them.
|
||||
gameObject.Inject();
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
CheckInput();
|
||||
|
||||
Reference in New Issue
Block a user