| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: 2025年5月22日 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | | using System.IO; |
| | | using System.Threading; |
| | | using System; |
| | | using UnityEngine; |
| | | using LitJson; |
| | | |
| | | public partial class IconConfig : ConfigBase<string, IconConfig> |
| | | { |
| | | |
| | | public string id; |
| | | public string folder; |
| | | public string sprite; |
| | | |
| | | public override string LoadKey(string _key) |
| | | { |
| | | string key = GetKey(_key); |
| | | return key; |
| | | } |
| | | |
| | | public override void LoadConfig(string input) |
| | | { |
| | | try { |
| | | string[] tables = input.Split('\t'); |
| | | id = tables[0]; |
| | | |
| | | folder = tables[1]; |
| | | |
| | | sprite = tables[2]; |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | | Debug.LogError(exception); |
| | | } |
| | | } |
| | | } |
| | | //--------------------------------------------------------
|
| | | // [Author]: YYL
|
| | | // [ Date ]: 2025年8月4日
|
| | | //--------------------------------------------------------
|
| | |
|
| | | using System.Collections.Generic;
|
| | | using System;
|
| | | using UnityEngine;
|
| | | using LitJson;
|
| | |
|
| | | public partial class IconConfig : ConfigBase<string, IconConfig>
|
| | | {
|
| | | static IconConfig()
|
| | | {
|
| | | if (isInit)
|
| | | {
|
| | | return;
|
| | | }
|
| | | LazyInit();
|
| | | }
|
| | |
|
| | | public string id;
|
| | | public string folder;
|
| | | public string sprite;
|
| | |
|
| | | public override string LoadKey(string _key)
|
| | | {
|
| | | string key = GetKey(_key);
|
| | | return key;
|
| | | }
|
| | |
|
| | | public override void LoadConfig(string input)
|
| | | {
|
| | | try {
|
| | | string[] tables = input.Split('\t');
|
| | | id = tables[0];
|
| | |
|
| | | folder = tables[1];
|
| | |
|
| | | sprite = tables[2];
|
| | | }
|
| | | catch (Exception exception)
|
| | | {
|
| | | Debug.LogError(exception);
|
| | | }
|
| | | }
|
| | | }
|