Esempio n. 1
0
    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);
        }
    }
Esempio n. 2
0
 public void AffectCharacter(GameObject character)
 {
     bodyMatch       = character.GetComponent <BodyMatch>();
     bodyMatch.Etnia = etniaValue;
 }