Exemplo n.º 1
0
    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;
        }
    }
Exemplo n.º 2
0
 private void OnEnable()
 {
     _HeroesUI = gameObject.GetComponentInParent <HeroesUI>();
 }