Exemplo n.º 1
0
        void Start()
        {
            DialogXmlReader = DialogXmLreader.Load(Ta);

            //ShowDialogue = false;
            DialogueHud.SetActive(false);
        }
Exemplo n.º 2
0
        public static DialogXmLreader Load(TextAsset xml)
        {
            XmlSerializer   serializer = new XmlSerializer(typeof(DialogXmLreader));
            StringReader    reader     = new StringReader(xml.text);
            DialogXmLreader dial       = serializer.Deserialize(reader) as DialogXmLreader;

            return(dial);
        }