public static string CombinedPartNameMapper(CombinedPart combinedPart)
    {
        var species    = AnimalSpeciesMapper(combinedPart.GetSpecies());
        var bodyType   = BodyPartTypeMapper(combinedPart.GetType());
        var animalType = AnimalPartTypeMapper(combinedPart.GetType());

        return(bodyType + animalType + species);
    }
Example #2
0
 public void UpdateBodyPart(CombinedPart combinedPart)
 {
     for (int i = currentParts.Count - 1; i >= 0; i--)
     {
         if (currentParts[i].type == combinedPart.GetType())
         {
             currentParts[i].species = combinedPart.GetSpecies();
             GetComponent <UpdateBody>().UpdateBodyPart(combinedPart);
             break;
         }
     }
 }