/// <summary> /// Check if xml provided is valid /// </summary> /// <returns>Array with atlas frame data</returns> protected bool ValidXML() { try { xml = new OTXMLDataReader(name, atlasDataFile.text); xml.Open(); return true; } catch (System.Exception err) { Debug.LogError("Orthello : Atlas XML file could not be read!"); Debug.LogError(err.Message); } return false; }
/// <summary> /// Check if xml provided is valid /// </summary> /// <returns>Array with atlas frame data</returns> protected bool ValidXML() { try { xml = new OTXMLDataReader(name, atlasDataFile.text); xml.Open(); return(true); } catch (System.Exception err) { Debug.LogError("Orthello : Atlas XML file could not be read!"); Debug.LogError(err.Message); } return(false); }