Пример #1
0
 protected override void OnActionEnter()
 {
     if (m_collision_target_generator_cfgid > 0 && m_collision_target_generator == null)
     {
         SkillComponent skill_component = m_context.GetData <SkillComponent>(BTContextKey.OwnerSkillComponent);
         m_collision_target_generator = GetLogicWorld().GetEffectManager().CreateGenerator(m_collision_target_generator_cfgid, skill_component.GetOwnerEntity());
         if (m_collision_target_generator != null && m_collided_targets == null)
         {
             m_collided_targets = new List <int>();
         }
     }
     if (m_task == null)
     {
         m_task = LogicTask.Create <ComponentCommonTask>();
         m_task.Construct(this);
     }
 }
 protected override void OnActionEnter()
 {
     if (m_generator == null)
     {
         SkillComponent skill_component = m_context.GetData <SkillComponent>(BTContextKey.OwnerSkillComponent);
         m_generator = GetLogicWorld().GetEffectManager().CreateGenerator(m_generator_cfgid, skill_component.GetOwnerEntity());
     }
 }