//-------------------------------------------------------- // [Author]: 第二世界 // [ Date ]: Tuesday, February 12, 2019 //-------------------------------------------------------- using UnityEngine; using System; namespace TableConfig { public partial class InvestConfig : ConfigBase { public int id; public int type; public int needDay; public int needLV; public string award; public override string getKey() { return id.ToString(); } public override void Parse(string content) { try { var contents = content.Split('\t'); int.TryParse(contents[0],out id); int.TryParse(contents[1],out type); int.TryParse(contents[2],out needDay); int.TryParse(contents[3],out needLV); award = contents[4]; } catch (Exception ex) { DebugEx.Log(ex); } } } }