コード例 #1
0
 public COMDT_TALENTARRAY()
 {
     for (int i = 0; i < 20; i++)
     {
         this.astTalentInfo[i] = (COMDT_TALENTINFO)ProtocolObjectPool.Get(COMDT_TALENTINFO.CLASS_ID);
     }
     this.stWakeStep = (COMDT_HEROWAKE_STEP)ProtocolObjectPool.Get(COMDT_HEROWAKE_STEP.CLASS_ID);
 }
コード例 #2
0
 public override void OnUse()
 {
     if (this.astTalentInfo != null)
     {
         for (int i = 0; i < this.astTalentInfo.Length; i++)
         {
             this.astTalentInfo[i] = (COMDT_TALENTINFO)ProtocolObjectPool.Get(COMDT_TALENTINFO.CLASS_ID);
         }
     }
     this.stWakeStep = (COMDT_HEROWAKE_STEP)ProtocolObjectPool.Get(COMDT_HEROWAKE_STEP.CLASS_ID);
 }
コード例 #3
0
 public override void OnRelease()
 {
     this.bWakeState = 0;
     if (this.astTalentInfo != null)
     {
         for (int i = 0; i < this.astTalentInfo.Length; i++)
         {
             if (this.astTalentInfo[i] != null)
             {
                 this.astTalentInfo[i].Release();
                 this.astTalentInfo[i] = null;
             }
         }
     }
     if (this.stWakeStep != null)
     {
         this.stWakeStep.Release();
         this.stWakeStep = null;
     }
 }