public class MyTickManager : Singleton<MyTickManager>
{
private List<Action> updateList = new List<Action>();
/// <summary>
/// 防止添加Update()立刻移除,这样会出错
/// </summary>
private List<Action> tempUpdateList = new List<Action>();
public static void AddUpdate
统一管理Unity里面的Update
![](https://img-home.csdnimg.cn/images/20240711042549.png)