UIDemo
This commit is contained in:
ALEXTANG
2022-09-23 16:05:21 +08:00
parent eb19b04cee
commit bdd4a1cff7
6 changed files with 491 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System.Collections;
using System.Collections.Generic;
using TEngine.Runtime;
using TEngine.Runtime.UIModule;
using UnityEngine;
public class UITestMain : MonoBehaviour
{
void Start()
{
//Demo示例监听TEngine流程加载器OnStartGame事件
//抛出这个事件说明框架流程加载完成(热更新,初始化等)
GameEventMgr.Instance.AddEventListener(TEngineEvent.OnStartGame,OnStartGame);
}
/// <summary>
/// OnStartGame
/// </summary>
private void OnStartGame()
{
// 激活UI系统
UISys.Instance.Active();
}
}