protected override void ResetRuntimeData()
 {
     if (m_generator != null)
     {
         SkillComponent skill_component = m_context.GetData <SkillComponent>(BTContextKey.OwnerSkillComponent);
         GetLogicWorld().GetEffectManager().DestroyGenerator(m_generator.ID, skill_component.GetOwnerEntityID());
         m_generator = null;
     }
 }
Example #2
0
 protected override void ResetRuntimeData()
 {
     if (m_collision_target_generator != null)
     {
         SkillComponent skill_component = m_context.GetData <SkillComponent>(BTContextKey.OwnerSkillComponent);
         GetLogicWorld().GetEffectManager().DestroyGenerator(m_collision_target_generator.ID, skill_component.GetOwnerEntityID());
         m_collision_target_generator = null;
     }
     if (m_collided_targets != null)
     {
         m_collided_targets.Clear();
     }
     if (m_task != null)
     {
         m_task.Cancel();
         LogicTask.Recycle(m_task);
         m_task = null;
     }
     m_remain_time = FixPoint.Zero;
 }