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