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