Example #1
0
 void OnTriggerStay2D(Collider2D other)
 {
     if (other.gameObject.CompareTag("Player") && Input.GetButtonDown("Fire1") && interact)
     {
         DistanceJoint2D.Destroy(dj);
         HingeJoint2D.Destroy(hj);
     }
 }