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