public void AffectCharacter(GameObject character) { bodyMatch = character.GetComponent <BodyMatch>(); bodyMatch.Complexion = complexionValue; Face characterFace = character.transform.FindChild("Face").GetComponent <Face>(); if (characterFace != null) { // The Face know where to locate the transform depending on the complexionValue characterFace.LocateFace(complexionValue); } }
public void AffectCharacter(GameObject character) { bodyMatch = character.GetComponent <BodyMatch>(); bodyMatch.Etnia = etniaValue; }