| | |
| | | } |
| | | endTag = _endTag; |
| | | toIndex = _toIndex; |
| | | PrintAllPack(); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | fromIndex = _fromIndex; |
| | | startTag = tag; |
| | | |
| | | |
| | | } |
| | | |
| | | public void PrintAllPack() |
| | | { |
| | | string temp = "CustomHB426CombinePack startTag: " + (startTag != null ? startTag.Tag : "null") + " fromIndex: " + fromIndex + " toIndex: " + toIndex + "\n"; |
| | | for (int i = 0; i < packList.Count; i++) |
| | | { |
| | | var pack = packList[i]; |
| | | if (pack is CustomHB426CombinePack b426Pack) |
| | | { |
| | | temp += " pack type is " + pack.GetType().Name + " tag is " + (b426Pack.startTag != null ? b426Pack.startTag.Tag : "null") + "\n"; |
| | | } |
| | | else |
| | | { |
| | | temp += " pack type is " + pack.GetType().Name + "\n"; |
| | | } |
| | | } |
| | | BattleDebug.LogError(temp); |
| | | } |
| | | |
| | | public void AddPack(GameNetPackBasic pack) |