예제 #1
0
    void OnCollisionEnter2D(Collision2D collided)
    {
        if (collided.gameObject.tag == "item")
        {
            sm.changeMoneyBy(11.73f);
            sm.changeAnxietyBy(2);

            Destroy(collided.gameObject);
        }
    }