public virtual bool SetupCharacterFace() { if (add_character_face == false) { // Return but dont break the cycle. return(true); } bool continute_setup = false; AlertProgress("Checking CharacterFace Dependencies"); CharacterFace characterFace = character.GetComponent <CharacterFace>(); if (characterFace) { AlertProgress("CharacterFace Found"); continute_setup = true; } else { AlertProgress("CharacterFace not found"); AlertProgress("Creating CharacterFace"); characterFace = character.AddComponent <CharacterFace>(); continute_setup = true; } AlertProgress("CharacterFace Setup complete"); return(continute_setup); }
public CharacterFaceInstruction(Character character, CharacterFace face) { this.Character = character; this.Face = face; }