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