Beispiel #1
0
        public void SpellSkill()
        {
            PreProcess();
            if (SkillExecution == null)
            {
                SkillAbility.ApplyAbilityEffectsTo(Target);
            }
            else
            {
                Hero.Instance.StopMove();

                if (SkillExecution.InputCombatEntity != null)
                {
                    Hero.Instance.transform.GetChild(0).LookAt(SkillExecution.InputCombatEntity.Position);
                }
                else if (SkillExecution.InputPoint != null)
                {
                    Hero.Instance.transform.GetChild(0).LookAt(SkillExecution.InputPoint);
                }
                else
                {
                    Hero.Instance.transform.GetChild(0).localEulerAngles = new Vector3(0, SkillExecution.InputDirection, 0);
                }

                SkillExecution.BeginExecute();
            }
            PostProcess();
        }
Beispiel #2
0
 public void SpellSkill()
 {
     PreProcess();
     if (SkillAbilityExecution == null)
     {
         SkillAbility.ApplyAbilityEffectsTo(Target);
     }
     else
     {
         SkillAbilityExecution.BeginExecute();
     }
     PostProcess();
 }
Beispiel #3
0
 public void SpellSkill()
 {
     PreProcess();
     if (SkillExecution == null)
     {
         SkillAbility.ApplyAbilityEffectsTo(Target);
         PostProcess();
         ApplyAction();
     }
     else
     {
         if (SkillTargets.Count > 0)
         {
             SkillExecution.SkillTargets.AddRange(SkillTargets);
         }
         SkillExecution.BeginExecute();
         AddComponent <UpdateComponent>();
     }
 }