Пример #1
0
        //分享房间
        public static void RoomShare(int roomId, FiveStarRoomConfig config, int existingNumber)
        {
            string url   = HomeUrl + "?roomId=" + roomId;
            string title = $"{ShareTitle}  房号-{roomId},已有({existingNumber}/{config.RoomNumber})人";
            string desc  = config.GetWanFaDesc(true, roomId);

            SdkMgr.Ins.WeChatShareUrl(url, title, desc, WxShareSceneType.Friend);
        }
Пример #2
0
        public void AlterWanfaFinshCall(RepeatedField <int> configs)
        {
            _CurrSelectWanFaConfigs = configs;
            FiveStarRoomConfig fiveStarRoomConfig = FiveStarRoomConfigFactory.Create(_CurrSelectWanFaConfigs);

            mWanFaText.text = fiveStarRoomConfig.GetWanFaDesc(false);
            fiveStarRoomConfig.Dispose();
        }
Пример #3
0
        public void InitRoomItemInfo()
        {
            mWanFaDescText.text  = _FiveStarRoomConfig.GetWanFaDesc(false);
            mRoomNumberText.text = "房号\n" + mData.RoomId;
            mRoomNumberBgGo.SetActive(mData.RoomId != 0);


            if (mData.RoomConfigLists.Equals(FrienCircleComponet.Ins.CuurSelectFriendsCircle.DefaultWanFaCofigs))
            {
                WanFaType                    = FrienCircleWanFaType.Normal;
                mRoomBgImage.sprite          = ResourcesComponent.Ins.GetResoure(UIType.FriendCirclePanel, "RoomNormalWanfaBg") as Sprite;
                mSelfRectTransform.sizeDelta = RoomNormalWanfaSize;
                mWanFaDescText.gameObject.SetActive(false);
            }
            else
            {
                WanFaType                    = FrienCircleWanFaType.Freedom;
                mRoomBgImage.sprite          = ResourcesComponent.Ins.GetResoure(UIType.FriendCirclePanel, "RoomFreedomWanfaBg") as Sprite;
                mSelfRectTransform.sizeDelta = RoomFreedomWanfaSize;
                mWanFaDescText.gameObject.SetActive(true);
            }
            InitPlayerInfo();
            FrienCircleCutShowWanFaEvent();//初始化调一遍 玩法显示
        }