Update TSingleton.cs

增加单例管理器的统一释放
This commit is contained in:
ALEXTANG
2022-06-09 10:23:49 +08:00
parent d7e56bd547
commit 4b5aaa3bbc

View File

@@ -1,5 +1,6 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace TEngine
{
@@ -136,6 +137,16 @@ namespace TEngine
return null;
}
/// <summary>
/// 释放所有单例
/// </summary>
public static void ReStart()
{
Release();
SceneManager.LoadScene(0);
}
}
/// <summary>