public static void ClearBipedRagdoll(BipedRagdollReferences r) { var transforms = r.GetRagdollTransforms(); foreach (Transform t in transforms) { ClearTransform(t); } }
public static bool IsClear(BipedRagdollReferences r) { var transforms = r.GetRagdollTransforms(); foreach (Transform t in transforms) { if (t.GetComponent <Rigidbody>() != null) { return(false); } } return(true); }