예제 #1
0
 protected override void UpdateJoint()
 {
     if (JointOverride != null)
     {
         JointOverride.ApplySettings(Joint);
     }
     else if (JointSettings != null)
     {
         JointSettings.ApplySettings(Joint);
     }
     else
     {
         Debug.LogError($"JointSettings field is empty, must be populated with HVRJointSettings scriptable object.");
     }
 }
예제 #2
0
        protected virtual void UpdateJoint()
        {
            if (Stopped)
            {
                return;
            }

            if (JointOverride != null)
            {
                JointOverride.ApplySettings(Joint);
            }
            else if (JointSettings != null)
            {
                JointSettings.ApplySettings(Joint);
            }
        }