private void Update() { if (PlayerNetwork != null) { _playerName.text = PlayerNetwork.Name; if (PlayerNetwork.IsMasterClient() || !_networkController.IsMasterClient()) { _kickButton.gameObject.SetActive(false); } else { _kickButton.gameObject.SetActive(true); } if (!PlayerNetwork.IsMasterClient()) { _ownerImage.gameObject.SetActive(false); } else { _ownerImage.gameObject.SetActive(true); } if (PlayerNetwork.IsMine()) { _radioGroup.Interactable = true; } else { _radioGroup.Interactable = false; } _radioGroup.Set((int)PlayerNetwork.PlayerRole, false); } else { Destroy(gameObject); } }