Esempio n. 1
0
 public override void Dispose()
 {
     Ins = null;
     LittleRoundClearData();                   //每小局要清空的数据
     _FriendsCircleId    = 0;                  //对应亲友圈id
     _CuurRoomOffice     = 0;                  //当前房间的局数
     _RoomType           = RoomType.Match;     //房间类型默认是匹配
     _RoomState          = RoomStateType.None; //房间现在的状态
     _config             = null;               //房间配置信息
     _userServereatIndex = -1;                 //用户所在牌局的服务器索引
     _ServerSeatIndexInPlayer.Clear();         //清空玩家对象
     base.Dispose();
 }
Esempio n. 2
0
        public override void StartGame(params object[] objs)
        {
            //参数 0房间配置 1房间ID 2房间类型
            base.StartGame();
            Log.Debug("进入游戏卡五星");
            // Game.Scene.AddComponent<CardFiveStarRoom, RepeatedField<int>,int>(roomConfigs, _roomType);

            CardFiveStarRoom cardFiveStarRoom = Game.Scene.AddComponent <CardFiveStarRoom>();

            cardFiveStarRoom.SetConfigInfo((RepeatedField <int>)objs[0]);
            cardFiveStarRoom._RoomId   = (int)objs[1];
            cardFiveStarRoom._RoomType = (int)objs[2];
            UIComponent.GetUiView <CardFiveStarRoomPanelComponent>().Show();
        }
Esempio n. 3
0
        public int _ResideNum = 0;                                                                                         //剩余牌数量

        public void Awake()
        {
            Ins        = this;
            _roomPanel = UIComponent.GetUiView <CardFiveStarRoomPanelComponent>();
            InitCardResidueNum();//初始化剩余牌数
        }