/******************************************************************** 文件: Test.cs 作者: 梦语 邮箱: 1982614048@qq.com 创建时间: 2024/04/11 18:49:03 最后修改: 梦语 最后修改时间: 2024/04/24 13:33:01 功能: *********************************************************************/ using System.Collections; using System.Collections.Generic; using Sirenix.OdinInspector; using Unity.VisualScripting; using UnityEngine; using UnityEngine.UI; namespace Ether { public class Test : MonoBehaviour { [Label("场景")] [ValueDropdown("@ConstName.SceneNameList")] public string scenceName; //public DictionaryEx dic = new DictionaryEx(); private void Start() { //ReInputManager.Inst.Init(); //Debug.Log(JsonTools.ToJson(dic)); //InputManager.Inst.Init(); //InputManager.Inst.AddInput(); //KeyboardInput input = InputManager.Inst.GetInput(); //List roleList = TableProvider.Get().DataList; Entity entity = EntityManager.Inst.GetEntity("MainCanvas"); Debug.Log(entity.name); //SceneSystemManager.Inst.LoadSceneAsync("DiningCar", (progress) => //{ // Debug.Log(progress.ToString()); //}); //TaskSystem.Inst.Init(); //TaskSystem.Inst.ReceiveTask(1); //TaskSystem.Inst.ReceiveTask(5); //TaskSystem.Inst.SuccessTask(7); //SaveSystem.Inst.SaveArchive(1); SaveSystem.Inst.LoadArchive(1); //foreach (var item in TaskSystem.Inst.taskStateDic) //{ // Debug.LogError(item.Key + " " + item.Value); //} //var task = TaskSystem.Inst.CurMainTaskData; //TbRole tbRole = tables.Get(); //GetComponent().Init((item, index)=>{ // Image image = item.GetComponent(); // image.sprite = LoaderTools.LoadAsset($"UI/Main/ui_main_{index}"); //}, 50); ReInputManager.Inst.Init(); //ReInputManager.Inst.ShowInteractionBind(); UIManager.Inst.Init(); DialogueSystem.Inst.Init(); } private void OnDestroy() { UIManager.Inst.Clear(); DialogueSystem.Inst.Clear(); } } }