Exemplo n.º 1
0
        private void OnPlayerCardGenerateDecorate(int noticeName, INoticeBase <int> param)
        {
            CardNotice notice = param as CardNotice;

            notice.heroControllerFrom = mHeroNotice.heroController;
            mHeroNotice.ToPool();
        }
Exemplo n.º 2
0
        private INoticeBase <int> OnPlayerCardGenerateCreat(int noticeName)
        {
            CardNotice cardNotice = Pooling <CardNotice> .From();

            cardNotice.camp = Consts.CAMP_PLAYER;
            return(cardNotice);
        }
Exemplo n.º 3
0
        private void OnPlayerCardGenerateListener(INoticeBase <int> param)
        {
            Debug.Log("OnPlayerCardGenerateListener 1");
            CardNotice           notice         = param as CardNotice;
            BattleHeroController heroController = notice.heroControllerFrom;

            //heroController.
            //TODO 根据将领能力生成手牌

            notice.ToPool();
        }