private void Update() { unscaledDeltaTime = MaxStep > Time.unscaledDeltaTime ? MaxStep : Time.unscaledDeltaTime; deltaTime = MaxStep > Time.deltaTime ? MaxStep : Time.deltaTime; deltaTime *= Time.timeScale; if (taskCount == 0) { return; } int i = taskCount - 1; for (; i >= 0; i--) { TaskBase curTask = taskList[i]; curTask.Update(); if (curTask.IsDone) { curTask.Dispose(); } } }