Frame/Assets/Scripts/Test.cs

52 lines
1.4 KiB
C#
Raw Normal View History

2024-04-02 18:17:57 +08:00
using System;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
namespace Game
{
public class Test : MonoBehaviour
{
// public Transform tr;
2024-04-02 18:17:57 +08:00
private void Update()
{
if (Input.GetKeyDown(KeyCode.A))
{
2024-04-04 23:51:14 +08:00
// var go = Game.resourceManager.LoadGameObjectSync(@"player");
// // var go = ResourceManager.Instance.LoadGameObject_MMM(@"hh");
// go.name = "123";
2024-04-02 18:17:57 +08:00
}
if (Input.GetKeyDown(KeyCode.D))
{
//
// ResourceManager.Instance.Release("hh");
//
// CommonHelper.FindChildDeep<Image>(tr, "imag");
// Debug.Log("找到此组件l");
2024-04-03 14:38:44 +08:00
//
// ResourceManager.Instance.LoadSceneAsync("Game", LoadSceneMode.Additive);
2024-04-02 18:17:57 +08:00
//
2024-04-03 17:46:56 +08:00
// EventManager.Instance.FireNow(this, new LoadingGameSceneFinishEventArgs(true));
//
//var value = this.GetType().ToString().Split(".");
// Debug.Log(value[^1]);
//
// var values = Enum.GetValues(typeof(ProcedureType));
// foreach (var value in values)
// {
// UnityEngine.Debug.Log( value.ToString());
// }
//
2024-04-02 18:17:57 +08:00
}
}
}
}