mirror of
https://github.com/Leahnaya/TheKingsRace.git
synced 2026-04-25 16:15:39 -05:00
Fixed GameHandler null ref
This commit is contained in:
parent
4e0fb884ad
commit
896b57252b
|
|
@ -36,7 +36,7 @@ public class GameHandler : NetworkBehaviour
|
|||
if (character.GetComponent<NetworkObject>().OwnerClientId == NetworkManager.Singleton.LocalClientId) {
|
||||
localPlayer = character;
|
||||
|
||||
if(FindGameObjectInChildWithTag(character, "UICam").GetComponent<Camera>() != null){
|
||||
if(FindGameObjectInChildWithTag(character, "UICam") != null){
|
||||
FindGameObjectInChildWithTag(character, "UICam").GetComponent<Camera>().enabled = true;
|
||||
|
||||
GameObject UICamera = FindGameObjectInChildWithTag(character, "UICam");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user