private INoticeBase <int> OnAIChoosePlayerCardHeroCreate(int noticeName) { HeroNotice heroNotice = Pooling <HeroNotice> .From(); heroNotice.camp = Consts.CAMP_PLAYER; return(heroNotice); }
private void OnAIPlayerAICommit(INoticeBase <int> param) { Debug.Log("OnAIPlayerAICommit"); mPlayerIntoBattleRatio.Execute(); mHeroNotice = param as HeroNotice; mHeroNotice.id = mPlayerIntoBattleRatio.HeroID; mHeroNotice.heroController = mPlayerIntoBattleRatio.Hero; }
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(); }