| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Saturday, January 06, 2018 |
| | | // [ Date ]: Tuesday, February 12, 2019 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | |
| | | public partial class FaceConfig : ConfigBase { |
| | | |
| | | public string name { get ; private set; } |
| | | public int frameCnt { get ; private set ; } |
| | | public int speed { get ; private set ; } |
| | | public string name; |
| | | public int frameCnt; |
| | | public int speed; |
| | | |
| | | public override string getKey() |
| | | { |
| | | return name.ToString(); |
| | | } |
| | | |
| | | public override void Parse() { |
| | | public override void Parse(string content) { |
| | | try |
| | | { |
| | | name = rawContents[0].Trim(); |
| | | var contents = content.Split('\t'); |
| | | |
| | | name = contents[0]; |
| | | |
| | | frameCnt=IsNumeric(rawContents[1]) ? int.Parse(rawContents[1]):0; |
| | | int.TryParse(contents[1],out frameCnt); |
| | | |
| | | speed=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0; |
| | | int.TryParse(contents[2],out speed); |
| | | } |
| | | catch (Exception ex) |
| | | { |