예제 #1
0
    // void OnCollisionEnter2D(Collision2D collider)
    void OnTriggerEnter2D(Collider2D collider)
    {
        Vector3 curPos = m_Transform.localPosition;
        Vector3 force  = curPos - m_RecordPos;

        m_PullBar.AddForce(force);
    }