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); }
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; } } }
public void UpdateBodyPart(CombinedPart part) { switch (part.GetType()) { case PartType.ARMS: UpdateArms(part); break; case PartType.LEGS: UpdateLegs(part); break; case PartType.HEAD: UpdateHead(part); break; } }