Beispiel #1
0
 public static bool SetupError(BipedReferences references, ref string errorMessage)
 {
     if (!references.isFilled)
     {
         errorMessage = "BipedReferences contains one or more missing Transforms.";
         return(true);
     }
     return(BipedReferences.LimbError(references.leftThigh, references.leftCalf, references.leftFoot, ref errorMessage) || BipedReferences.LimbError(references.rightThigh, references.rightCalf, references.rightFoot, ref errorMessage) || BipedReferences.LimbError(references.leftUpperArm, references.leftForearm, references.leftHand, ref errorMessage) || BipedReferences.LimbError(references.rightUpperArm, references.rightForearm, references.rightHand, ref errorMessage) || BipedReferences.SpineError(references, ref errorMessage) || BipedReferences.EyesError(references, ref errorMessage));
 }