52 lines
1.4 KiB
C#
52 lines
1.4 KiB
C#
using System;
|
|
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Game
|
|
{
|
|
public class Test : MonoBehaviour
|
|
{
|
|
// public Transform tr;
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.A))
|
|
{
|
|
// var go = Game.resourceManager.LoadGameObjectSync(@"player");
|
|
// // var go = ResourceManager.Instance.LoadGameObject_MMM(@"hh");
|
|
// go.name = "123";
|
|
}
|
|
|
|
if (Input.GetKeyDown(KeyCode.D))
|
|
{
|
|
//
|
|
// ResourceManager.Instance.Release("hh");
|
|
|
|
//
|
|
// CommonHelper.FindChildDeep<Image>(tr, "imag");
|
|
// Debug.Log("找到此组件l");
|
|
|
|
//
|
|
// ResourceManager.Instance.LoadSceneAsync("Game", LoadSceneMode.Additive);
|
|
|
|
//
|
|
// 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());
|
|
// }
|
|
|
|
//
|
|
|
|
}
|
|
}
|
|
}
|
|
} |