示例#1
0
    void Update()
    {
        clientController.Run();

        if (qrCodeIsNull == false)
        {
            qrCodeIsNull      = true;
            OKPopUp.popUpType = OKPopUp.POPUP_DESTROY;

            CommonUtil.InstantiateOKPopUp(commonLang.langList[6]);
        }
        if (Application.platform == RuntimePlatform.Android)
        {
            if (Input.GetKeyUp(KeyCode.Escape))
            {
                YesOrNoPopUp.popUpType = YesOrNoPopUp.APPLICATION_QUIT;
                CommonUtil.InstantiateYesNoPopUP(commonLang.langList[15]);
            }
        }

        if (isCon == true)
        {
            isCon = false;
            serverConnect.SetActive(false);
        }
    }
示例#2
0
    void Update()
    {
        m_ClientController.Run();
        i_PlayerID = UXRoom.Instance.Player.GetIndex();
        if (i_PlayerID >= 0)
        {
            playerNumber.GetComponent <SpriteRenderer>().sprite = playerNumberSprite[i_PlayerID];
        }

        if (Input.GetKeyDown(KeyCode.Escape) == true)
        {
            //PopupManager.Instance().OpenPopup(POPUP_TYPE.POPUP_EXITCONFIRM);
        }

        if (m_PlayerController.GetLobbyState() == UXUser.LobbyState.Ready)
        {
            readyButton.SetActive(false);
            cancelButton.SetActive(true);
        }
        else if (m_PlayerController.GetLobbyState() == UXUser.LobbyState.Wait)
        {
            readyButton.SetActive(true);
            cancelButton.SetActive(false);
        }
    }