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