GameApp Shutdown

This commit is contained in:
ALEXTANG
2024-05-08 10:06:33 +08:00
parent f016fdd0a6
commit c707cc1a38
2 changed files with 5 additions and 2 deletions

View File

@@ -266,7 +266,7 @@ namespace TEngine
{
if (_behaviour != null)
{
_behaviour.Release();
_behaviour.Shutdown();
}
if (_entity != null)
{
@@ -392,8 +392,9 @@ namespace TEngine
OnApplicationPauseEvent -= fun;
}
public void Release()
internal void Shutdown()
{
DestroyEvent?.Invoke();
UpdateEvent = null;
FixedUpdateEvent = null;
LateUpdateEvent = null;