private void OnTriggerEnter2D(Collider2D collision)

    {

        if(collision.gameObject.name == "asdf")

        {

            박스콜라이더.enabled = false;

        }

    }

    private void OnTriggerExit2D(Collider2D collision)

    {

        if (collision.gameObject.name == "asdf")

        {

            박스콜라이더.enabled = true;

        }

    }


이렇게했는데 박스콜라이더 나가면 다시 enabled가 true가 안됨 왜그런지 아시는 분 계시나연??