예제 #1
0
    private void OnTriggerEnter2D(Collider2D other)
    {
        Pillar pillar = other.GetComponent <Pillar>();

        SoundManager.Instance.PlaySFX(11);

        if (pillar != null)
        {
            if (!pillar.isCharging)
            {
                pillar.currentCharacter = m_character;
                pillar.ActiveEffect();
            }
            else
            {
                m_character.ActiveCuspe();
            }
        }
        else
        {
            m_character.ActiveCuspe();
        }

        m_particle.transform.position = transform.position;
        m_particle.Play(true);

        this.gameObject.SetActive(false);
    }