Ejemplo n.º 1
0
 public virtual void OnSkillEffect(AnimationEvent e)
 {
     if (AttackTarget != null)
     {
         CurSkill.ShowEffect();
     }
 }
Ejemplo n.º 2
0
    public virtual bool AttackTheTarget()
    {
        if (AttackTarget == null)
        {
            return(false);
        }

        transform.LookAt(AttackTarget.position);
        CurSkill.Execute();
        return(true);
    }