i need to call public void DestroyJoint() which is in BawlSwing.cs and i have to call this from my c# file called Reset
if you guys could help me out with the line of code i need that would be great
thanks
i need to call public void DestroyJoint() which is in BawlSwing.cs and i have to call this from my c# file called Reset
if you guys could help me out with the line of code i need that would be great
thanks
Add this bit of code into your script, and drag the object that has BawlSwing attached in the inspector to the object that has the reset script attached.
public class Reset: MonoBehaviour
{
public BawlSwing bawlSwing;
public void Awake()
{
bawlSwing.DestroyJoint();
}
}