private void OnEnable() { Time.timeScale = 1.0f; LoadingScreen.IsLoadingScreen = false; _MUI = _MasterUI.GetComponent <MasterUI>(); _HUI = _HeroUI.GetComponent <HeroesUI>(); _MasterUI.SetActive(false); _HeroUI.SetActive(true); if (PhotonNetwork.isMasterClient) { _HeroUI.SetActive(false); _MasterUI.SetActive(true); } else { Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; } }
private void OnEnable() { _HeroesUI = gameObject.GetComponentInParent <HeroesUI>(); }