//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Saturday, January 06, 2018 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class AreaCameraConfig : ConfigBase { public int AreaID { get ; private set ; } public int Distance { get ; private set ; } public int RotX { get ; private set ; } public int RotY { get ; private set ; } public override string getKey() { return AreaID.ToString(); } public override void Parse() { try { AreaID=IsNumeric(rawContents[0]) ? int.Parse(rawContents[0]):0; Distance=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; RotX=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; RotY=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; } catch (Exception ex) { DebugEx.Log(ex); } } } }