private void OnEnable() { if (joint == null) { joint = GetComponent <JointBase>(); } originalDamper = joint.damper; originalSpring = joint.spring; }
private void Awake() { if (showDebug) { Debug.Log(base.name + " Awake "); } if (joint == null) { joint = GetComponent <JointBase>(); } if (joint != null) { joint.EnsureInitialized(); maxForce = joint.maxForce; } else if (showDebug) { Debug.Log(base.name + " There is nothing set within the joint var "); } }
private void Awake() { joint = GetComponent <JointBase>(); }