removed extraneous code

This commit is contained in:
MrGadget1024 2021-11-29 11:18:33 -05:00
parent 259e61411c
commit e4b5a8f975

View File

@ -83,9 +83,6 @@ IEnumerator SendPlayerToNewScene(GameObject player)
// host client would have been disabled by OnTriggerEnter above // host client would have been disabled by OnTriggerEnter above
if (NetworkClient.localPlayer != null && NetworkClient.localPlayer.TryGetComponent<PlayerController>(out PlayerController playerController)) if (NetworkClient.localPlayer != null && NetworkClient.localPlayer.TryGetComponent<PlayerController>(out PlayerController playerController))
playerController.enabled = true; playerController.enabled = true;
if (NetworkClient.localPlayer != null && NetworkClient.localPlayer.TryGetComponent<NetworkTransform>(out NetworkTransform networkTransform))
networkTransform.enabled = true;
} }
} }
} }