Exemple #1
0
        private void OnDeserialize()
        {
            movieDatabase = XmlProcessor.Deserialize <MovieDatabase>(txtXml.text);
            UpdateLog();

            btnSerialize.interactable = movieDatabase != null;
        }
Exemple #2
0
        private void OnLoadAsset()
        {
            movieDatabase = XmlProcessor.Deserialize <MovieDatabase>(xmlAsset.text);
            UpdateLog();
            txtXml.text = xmlAsset.text;

            btnSerialize.interactable   = movieDatabase != null;
            btnDeserialize.interactable = !string.IsNullOrWhiteSpace(txtXml.text);
        }