Ejemplo n.º 1
0
    // 양자리 클래스의 스킬을 구현

    public override void DoSkill()
    {
        if (CheckSkillAvailability())
        {
            Collider2D[] cols = Physics2D.OverlapCircleAll(transform_.position, 3.0f);
            playerProperty.StartCoroutine(SlashEffect());
            if (cols.Length > 0)
            {
                for (int i = 0; i < cols.Length; ++i)
                {
                    if (cols[i].tag == "Enemy")
                    {
                        cols[i].SendMessage("BeAttacked", playerProperty, SendMessageOptions.DontRequireReceiver);
                    }
                }
            }
            StartCoroutine(SkillActivation());
        }
    }