void Start() { majorelText.SetActive(true); narratorSentences = loadXmlScript.NarratorClass; text = GetComponent <Text>(); textAppearanceManager = GetComponent <TextAppearanceManager>(); i = 0; anim = background.GetComponent <Animator>(); majorelTextAppearanceManager = majorelText.GetComponent <TextAppearanceManager>(); }
// Use this for initialization void Start() { text = GetComponent <Text>(); i = 0; textAppearanceManager = GetComponent <TextAppearanceManager>(); canContinue = true; narratorSentences = loadXmlScript.NarratorClass; anim = majorelCliff.GetComponent <Animator>(); fadeoutScript = fade.GetComponent <FadeOutController>(); fadeInScript = fade.GetComponent <FadeInController>(); }
void Awake() { ///////////////////////////////////////////LOAD //narratorClass = XmlLoad<NarratorTextClass>(Application.dataPath + "/Resources/", "NarratorText_Esp.xml"); narratorClass = XmlLoad <NarratorTextClass>(file); Debug.Log("xml cargado: " + file.name); ///////////////////////////////////////////SAVE //NarratorTextClass narratorClass = new NarratorTextClass(); //for (int i = 0; i < 10; i++) //{ // narratorClass.sentence.Add("frase " + i); // narratorClass.majorelSentence.Add("frase majorel " + i); // narratorClass.entitySentence.Add("frase ente" + i); //} //SaveXML<NarratorTextClass>(Application.dataPath + "/Dialogue/", "NarratorText_Esp.xml", narratorClass); //print("xml salvado, ruta: " + Application.dataPath); //////////////////////////////////////////// }