Files
TEngine/Assets/TEngine.Demo/Demo/TEngine.UIDemo/UITestMain.cs
ALEXTANG 94be77bec5 Update Demo目录
Update Demo目录
2022-10-24 20:39:01 +08:00

25 lines
615 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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();
}
}