コード例 #1
0
        private INoticeBase <int> OnAIChoosePlayerCardHeroCreate(int noticeName)
        {
            HeroNotice heroNotice = Pooling <HeroNotice> .From();

            heroNotice.camp = Consts.CAMP_PLAYER;
            return(heroNotice);
        }
コード例 #2
0
        private void OnAIPlayerAICommit(INoticeBase <int> param)
        {
            Debug.Log("OnAIPlayerAICommit");

            mPlayerIntoBattleRatio.Execute();

            mHeroNotice                = param as HeroNotice;
            mHeroNotice.id             = mPlayerIntoBattleRatio.HeroID;
            mHeroNotice.heroController = mPlayerIntoBattleRatio.Hero;
        }
コード例 #3
0
        private void OnAIChoosePlayerCardHero(INoticeBase <int> param)
        {
            Debug.Log("OnAIChoosePlayerCardHero 1");
            HeroNotice notice = param as HeroNotice;

            AIRatioNotice AIRatioNotice = Pooling <AIRatioNotice> .From();

            AIRatioNotice.camp = notice.camp;
            NotifyModular(Consts.N_SET_GENERAL_INTO_BATTLE_RATIO, AIRatioNotice);
            NotifyModular(Consts.N_COMMIT_PLAYER_AI, notice);

            AIRatioNotice.ToPool();
        }