mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
removed extraneous code
This commit is contained in:
parent
259e61411c
commit
e4b5a8f975
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user