Esempio n. 1
0
    /// <summary>
    /// 点击事件
    /// </summary>
    public void OnItemClick()
    {
        string             rule            = GamePatternModel.Inst.DeserializeRuleJosn(mData.rule, true);
        GameRoomInfoWidget mRoomInfoWidget = BaseView.GetWidget <GameRoomInfoWidget>(AssetsPathDic.GameRoomInfoWidget, Global.Inst.GetController <GamePatternController>().mView.transform);

        mRoomInfoWidget.ShowContent(rule);
        mRoomInfoWidget.ShowJoinRoomBtn(mData.roomId);
    }
Esempio n. 2
0
    /// <summary>
    /// 查看房间信息点击
    /// </summary>
    public void OnRoomInfoBtnClick()
    {
        string rule = GamePatternModel.Inst.DeserializeRuleJosn(XXGoldFlowerGameModel.Inst.mRoomRules, true, XXGoldFlowerGameModel.Inst.mGoldPattern);

        if (mRoomInfoWidget == null)
        {
            mRoomInfoWidget = BaseView.GetWidget <GameRoomInfoWidget>(AssetsPathDic.GameRoomInfoWidget, Global.Inst.GetController <XXGoldFlowerGameController>().mView.transform);
        }
        mRoomInfoWidget.ShowContent(rule);
    }