private static bool matchesNaming(string boneName, string[] namingConvention) { if (BipedNaming.excludesNaming(boneName, BipedNaming.typeExclude)) { return(false); } foreach (string value in namingConvention) { if (boneName.Contains(value)) { return(true); } } return(false); }
private static bool matchesNaming(string boneName, string[] namingConvention) { if (BipedNaming.excludesNaming(boneName, BipedNaming.typeExclude)) { return(false); } for (int i = 0; i < namingConvention.Length; i++) { string value = namingConvention[i]; if (boneName.Contains(value)) { return(true); } } return(false); }
private static bool isEye(string boneName) { return(BipedNaming.matchesNaming(boneName, BipedNaming.typeEye) && !BipedNaming.excludesNaming(boneName, BipedNaming.typeExcludeEye)); }
private static bool isTail(string boneName) { return(BipedNaming.matchesNaming(boneName, BipedNaming.typeTail) && !BipedNaming.excludesNaming(boneName, BipedNaming.typeExcludeTail)); }
private static bool isHead(string boneName) { return(BipedNaming.matchesNaming(boneName, BipedNaming.typeHead) && !BipedNaming.excludesNaming(boneName, BipedNaming.typeExcludeHead)); }