Fixed player being enabled while using grabber/being in network view

This commit is contained in:
Jan Groß
2021-06-13 04:25:33 +02:00
parent b5bf4a6d03
commit 3b1d880963
3 changed files with 447 additions and 1064 deletions

View File

@@ -42,6 +42,7 @@ public class GameManager : MonoBehaviour
//Leave network view with x
if (Keyboard.current.xKey.wasPressedThisFrame && networkView)
{
player.GetComponent<StarterAssets.FirstPersonController>().enabled = true;
SetActiveCamera(networkCamera);
activeNode.GetComponent<Node>().DisableNode();
activeNode = null;