コード例 #1
0
 public override void OnRelease()
 {
     if (this.stHeroCtrlInfo != null)
     {
         this.stHeroCtrlInfo.Release();
         this.stHeroCtrlInfo = null;
     }
     if (this.stSkinInfo != null)
     {
         this.stSkinInfo.Release();
         this.stSkinInfo = null;
     }
     if (this.stBattleListInfo != null)
     {
         this.stBattleListInfo.Release();
         this.stBattleListInfo = null;
     }
     if (this.stHeroInfo != null)
     {
         this.stHeroInfo.Release();
         this.stHeroInfo = null;
     }
     if (this.stLimitSkinInfo != null)
     {
         this.stLimitSkinInfo.Release();
         this.stLimitSkinInfo = null;
     }
     if (this.stSelfDefineEquipInfo != null)
     {
         this.stSelfDefineEquipInfo.Release();
         this.stSelfDefineEquipInfo = null;
     }
 }
コード例 #2
0
 public override void OnUse()
 {
     this.stHeroCtrlInfo        = (COMDT_HEROCTRLINFO)ProtocolObjectPool.Get(COMDT_HEROCTRLINFO.CLASS_ID);
     this.stSkinInfo            = (COMDT_HERO_SKIN_LIST)ProtocolObjectPool.Get(COMDT_HERO_SKIN_LIST.CLASS_ID);
     this.stBattleListInfo      = (COMDT_BATTLELIST_LIST)ProtocolObjectPool.Get(COMDT_BATTLELIST_LIST.CLASS_ID);
     this.stHeroInfo            = (COMDT_HEROINFO_LIST)ProtocolObjectPool.Get(COMDT_HEROINFO_LIST.CLASS_ID);
     this.stLimitSkinInfo       = (COMDT_HERO_LIMIT_SKIN_LIST)ProtocolObjectPool.Get(COMDT_HERO_LIMIT_SKIN_LIST.CLASS_ID);
     this.stSelfDefineEquipInfo = (COMDT_SELFDEFINE_EQUIP_INFO)ProtocolObjectPool.Get(COMDT_SELFDEFINE_EQUIP_INFO.CLASS_ID);
 }