| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: 第二世界 |
| | | // [ Date ]: Tuesday, November 06, 2018 |
| | | // [ Date ]: Wednesday, November 07, 2018 |
| | | //-------------------------------------------------------- |
| | | |
| | | using UnityEngine; |
| | |
| | | public int ID { get ; private set ; }
|
| | | public string Name { get ; private set; }
|
| | | public int NeedLV { get ; private set ; }
|
| | | public int NeedVIPLVGift { get ; private set ; }
|
| | | public string leftBubbleIcon { get ; private set; }
|
| | | public string rightBubbleIcon { get ; private set; }
|
| | | public int[] leftOffset;
|
| | |
| | |
|
| | | NeedLV=IsNumeric(rawContents[2]) ? int.Parse(rawContents[2]):0;
|
| | |
|
| | | NeedVIPLVGift=IsNumeric(rawContents[3]) ? int.Parse(rawContents[3]):0; |
| | | leftBubbleIcon = rawContents[3].Trim();
|
| | |
|
| | | leftBubbleIcon = rawContents[4].Trim();
|
| | | rightBubbleIcon = rawContents[4].Trim();
|
| | |
|
| | | rightBubbleIcon = rawContents[5].Trim();
|
| | | |
| | | string[] leftOffsetStringArray = rawContents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] leftOffsetStringArray = rawContents[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | leftOffset = new int[leftOffsetStringArray.Length]; |
| | | for (int i=0;i<leftOffsetStringArray.Length;i++) |
| | | { |
| | | int.TryParse(leftOffsetStringArray[i],out leftOffset[i]); |
| | | }
|
| | |
|
| | | string[] rightOffsetStringArray = rawContents[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] rightOffsetStringArray = rawContents[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | rightOffset = new int[rightOffsetStringArray.Length]; |
| | | for (int i=0;i<rightOffsetStringArray.Length;i++) |
| | | { |
| | | int.TryParse(rightOffsetStringArray[i],out rightOffset[i]); |
| | | }
|
| | |
|
| | | Icon = rawContents[8].Trim();
|
| | | Icon = rawContents[7].Trim();
|
| | |
|
| | | Jump=IsNumeric(rawContents[9]) ? int.Parse(rawContents[9]):0; |
| | | Jump=IsNumeric(rawContents[8]) ? int.Parse(rawContents[8]):0; |
| | |
|
| | | GainTip = rawContents[10].Trim();
|
| | | GainTip = rawContents[9].Trim();
|
| | |
|
| | | string[] colorStringArray = rawContents[11].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | string[] colorStringArray = rawContents[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); |
| | | color = new int[colorStringArray.Length]; |
| | | for (int i=0;i<colorStringArray.Length;i++) |
| | | { |
| | | int.TryParse(colorStringArray[i],out color[i]); |
| | | }
|
| | |
|
| | | top=IsNumeric(rawContents[12]) ? int.Parse(rawContents[12]):0; |
| | | top=IsNumeric(rawContents[11]) ? int.Parse(rawContents[11]):0; |
| | | } |
| | | catch (Exception ex) |
| | | { |