コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 private static bool isEye(string boneName)
 {
     return(BipedNaming.matchesNaming(boneName, BipedNaming.typeEye) && !BipedNaming.excludesNaming(boneName, BipedNaming.typeExcludeEye));
 }
コード例 #4
0
 private static bool isTail(string boneName)
 {
     return(BipedNaming.matchesNaming(boneName, BipedNaming.typeTail) && !BipedNaming.excludesNaming(boneName, BipedNaming.typeExcludeTail));
 }
コード例 #5
0
 private static bool isHead(string boneName)
 {
     return(BipedNaming.matchesNaming(boneName, BipedNaming.typeHead) && !BipedNaming.excludesNaming(boneName, BipedNaming.typeExcludeHead));
 }