Example #1
0
    void RefreshReadyBtn()
    {
        var data = MgobeHelper.GetPlayerById(MgobeHelper.PlayerId);

        if (data != null)
        {
            m_BtnReady.GetComponentInChildren <Text>().text = data.CustomPlayerStatus == 0 ? "准备" : "取消准备";
        }
    }
Example #2
0
    void OnClickLeave()
    {
        var data = MgobeHelper.GetPlayerById(MgobeHelper.PlayerId);

        if (data.CustomPlayerStatus == 1)
        {
            return;
        }
        MgobeHelper.LeaveRoom(OnLeaveRoom);
    }