private void OnEnable()
 {
     if (joint == null)
     {
         joint = GetComponent <JointBase>();
     }
     originalDamper = joint.damper;
     originalSpring = joint.spring;
 }
Beispiel #2
0
 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 ");
     }
 }
Beispiel #3
0
 private void Awake()
 {
     joint = GetComponent <JointBase>();
 }