Пример #1
0
        public override void Init(GameObject go)
        {
            base.Init(go);
            _HuPaiHintJianArrowsGo = gameObject.FindChild("HuPaiHintJianArrowsGo").gameObject;
            _PaoIconGo             = gameObject.FindChild("PaoIconGo").gameObject;
            _KouIconGo             = gameObject.FindChild("KouIconGo").gameObject;
            _NotStateGo            = gameObject.FindChild("NotStateGo").gameObject;

            if (_width == 0)
            {
                RectTransform rectTransform = gameObject.GetComponent <RectTransform>();
                _width = rectTransform.rect.width - _HandInterval;
            }

            _PointerEvent = gameObject.AddComponent <PointerEvent>();
            //注册事件委托
            _PointerEvent.OnPointerDownAction  -= OnPointerDown;
            _PointerEvent.OnPointerUpAction    -= OnPointerUp;
            _PointerEvent.OnPointerEnterAction -= OnPointerEnter;
            _PointerEvent.OnPointerDownAction  += OnPointerDown;
            _PointerEvent.OnPointerUpAction    += OnPointerUp;
            _PointerEvent.OnPointerEnterAction += OnPointerEnter;
            _PointerEvent.OnPointerExitAction  -= OnPointerExit;
            _PointerEvent.OnPointerExitAction  += OnPointerExit;



            EventMsgMgr.RegisterEvent(CardFiveStarEventID.CanChuCardHaveHuHint, DetetionChuCanHu);
            EventMsgMgr.RegisterEvent(CardFiveStarEventID.UserChuCard, UserChuCard);
            EventMsgMgr.RegisterEvent(CardFiveStarEventID.PlayerLiangDao, PlayerLiangDaoEvnet);
            EventMsgMgr.RegisterEvent(CardFiveStarEventID.PlayerSelectLiangCardState, PlayerSelectLiangCardStateEvent);
        }
Пример #2
0
 public async void InitPanel()
 {
     mJwelAddBtn.Add(JwelAddBtnEvent);
     RefreshUserInfo();
     EventMsgMgr.RegisterEvent(CommEventID.SelfUserInfoRefresh, RefreshUserInfo);
     mHeadMaskBtn.Add(HeadMaskBtnEvent);
 }
Пример #3
0
 public void InitPanel()
 {
     EventMsgMgr.RegisterEvent(CommEventID.FrienCircleCutShowWanFa, FrienCircleCutShowWanFaEvent);
     _FiveStarRoomConfig = FiveStarRoomConfigFactory.Create(mData.RoomConfigLists);
     InitRoomItemInfo();
     mJoinBtn.Add(JoinRoom);
 }
 public void InitPanel()
 {
     mCloseBtn.Add(Hide);
     mConfirmBtn.Add(ConfirmBtnEvent);
     mMarketRecordBtn.Add(MarketRecordBtnEvent);
     _MarketRecordView = mMarketRecordViewGo.AddItem <MarketRecordView>();
     EventMsgMgr.RegisterEvent(CommEventID.SelfUserInfoRefresh, SetJewelNum);
 }
Пример #5
0
 public void InitPanel()
 {
     mCloseBtn.Add(CloseBtnEvent);
     mBeasnsAddBtn.Add(BeasnsAddBtnEvent);
     mFastStartBtn.Add(FastStartBtnEvent);
     InitRoomList();
     SetBeasnsNum();
     EventMsgMgr.RegisterEvent(CommEventID.SelfUserInfoRefresh, SetBeasnsNum);
 }
Пример #6
0
 public virtual void Init()
 {
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.Deal, Deal);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.AnewDeal, AnewDeal);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.CanAddTwice, CanAddTwice);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.EnrerRoom, EnrerRoom);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.ConfirmCamp, ConfirmCamp);
     Log.Debug(gameObject.name);
 }
 public virtual void RegisterEvent()
 {
     EventMsgMgr.RegisterEvent(CardFiveStarEventID.Deal, Deal);
     EventMsgMgr.RegisterEvent(CardFiveStarEventID.HideAllPlayer, HideAllPlayer);
     EventMsgMgr.RegisterEvent(CardFiveStarEventID.CutMatchIn, CutMatchIn);
     EventMsgMgr.RegisterEvent(CardFiveStarEventID.CutReadyIn, CutReadyIn);
     EventMsgMgr.RegisterEvent(CardFiveStarEventID.CutGameIn, CutGameIn);
     EventMsgMgr.RegisterEvent(CardFiveStarEventID.CutBeginStartPrepare, CutBeginStartPrepare);
     EventMsgMgr.RegisterEvent(CardFiveStarEventID.CutRoomCardEnterReadyIn, CutRoomCardEnterReadyIn);
 }
Пример #8
0
 public override void Init(GameObject go)
 {
     base.Init(go);
     _OneChuCardGroupGo = _ChuCardGroupsGo.FindChild("OneChuCardGroup").gameObject;
     for (int i = 0; i < 3; i++)
     {
         GameObject.Instantiate(_OneChuCardGroupGo, _ChuCardGroupsGo.transform);
     }
     for (int i = _ChuCardGroupsGo.transform.childCount - 1; i >= 0; i--)
     {
         _ChuCardGroups.Add(_ChuCardGroupsGo.transform.GetChild(i));
     }
     _CardFiveStarHandComponent = this.AddComponent <CardFiveStarHandComponent, Transform, Transform>(_HandGroup.transform, _NewHandPointGo.transform);
     EventMsgMgr.RegisterEvent(CommEventID.SelfUserInfoRefresh, RefreshBeans);
 }
Пример #9
0
 public void RegisterEvent()
 {
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.RequestOutRoom, RequestOutRoom);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.RequestPlayCard, RequestPlayCard);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.StarMathch, StarMathch);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.RobLanlord, RobLanlord);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.AddTwice, AddTwice);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.CallLanlord, CallLanlord);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.CanCallLanlord, CanCallLanlord);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.CanPlayCard, CanPlayCard);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.CanRobLanlord, CanRobLanlord);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.DissolveRoom, DissolveRoom);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.DontPlay, DontPlay);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.PlayCard, PlayCard);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.Prepare, Prepare);
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.ConfirmCamp, ConfirmCamp);
 }
Пример #10
0
        public void Init(CardFiveStarPlayer player, GameObject go)
        {
            _Player    = player;
            _User      = player._user;
            gameObject = go;
            Transform transform = gameObject.transform;

            _HeadImage            = ETModel.GameObjectHelper.FindChild(transform, "HeadImage").GetComponent <Image>();
            _NameText             = ETModel.GameObjectHelper.FindChild(transform, "HeadImage/NameBgGo/NameText").GetComponent <Text>();
            _ScoreText            = ETModel.GameObjectHelper.FindChild(transform, "ScoreBg/ScoreText").GetComponent <Text>();
            _PiaoNumText          = ETModel.GameObjectHelper.FindChild(transform, "PiaoNumText").GetComponent <Text>();
            _GetScoreText         = ETModel.GameObjectHelper.FindChild(transform, "GetScoreText").GetComponent <Text>();
            _LostConnectionHintGo = ETModel.GameObjectHelper.FindChild(transform, "LostConnectionHintGo").gameObject;
            _HouseIconGo          = ETModel.GameObjectHelper.FindChild(transform, "HouseIconGo").gameObject;
            _ExpressionPoint      = ETModel.GameObjectHelper.FindChild(transform, "ExpressionPoint");
            gameObject.GetComponent <Button>().Add(ShowUserInfo, false);
            InitHeadInfo(_Player);


            EventMsgMgr.RegisterEvent(CommEventID.UserOnLine, UserOnLine);   //用户上线
            EventMsgMgr.RegisterEvent(CommEventID.UserOffLine, UserOffLine); //用户下线
        }
 public void RegisterEvent()
 {
     EventMsgMgr.RegisterEvent(JoyLandlordsEventID.Deal, Deal);
 }
Пример #12
0
 public override void GameInit()
 {
     base.GameInit();
     EventMsgMgr.RegisterEvent(CommEventID.ReceiveChatInfo, ReceiveChatInfoEvnet);
 }
Пример #13
0
 public override void GameInit()
 {
     base.GameInit();
     EventMsgMgr.RegisterEvent(CommEventID.SelfUserInfoRefresh, SelfUserInfoRefreshEvent);
 }
Пример #14
0
 public override void GameInit()
 {
     base.GameInit();
     EventMsgMgr.RegisterEvent(CommEventID.GetGodds, GetGoddsEvnet);
 }
Пример #15
0
 public override void Awake()
 {
     base.Awake();
     EventMsgMgr.RegisterEvent(CommEventID.OnOtherNormalViewShow, OnOtherNormalViewShow);
 }
 public void RegisterEvent()
 {
     EventMsgMgr.RegisterEvent(CardFiveStarEventID.PlayerSelectLiangCardState, PlayerSelectLiangCardStateEvent);
     EventMsgMgr.RegisterEvent(CardFiveStarEventID.ZhiSeZi, ZhiSeZiEvent);
 }
 public override void GameInit()
 {
     base.GameInit();
     EventMsgMgr.RegisterEvent(CommEventID.CallRequest, CallRequestEvent);
     EventMsgMgr.RegisterEvent(CommEventID.CallResponse, CallResponseEvent);
 }