Demo
This commit is contained in:
ALEXTANG
2022-08-29 11:48:13 +08:00
parent 7302010182
commit d89ebf85b1
3 changed files with 106 additions and 77 deletions

26
Assets/Scenes/DemoMain.cs Normal file
View File

@@ -0,0 +1,26 @@
using System.Collections;
using System.Collections.Generic;
using TEngine.Runtime;
using UnityEngine;
public class DemoMain : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
//Demo示例监听TEngine流程加载器OnStartGame事件
//抛出这个事件说明框架流程加载完成(热更新,初始化等)
GameEventMgr.Instance.AddEventListener(TEngineEvent.OnStartGame,OnStartGame);
}
private void OnStartGame()
{
Log.Debug("TEngineEvent.OnStartGame");
}
// Update is called once per frame
void Update()
{
}
}