public void Update() { if (AsyncTasks.Count > 0) { int i = 0; while (i++ < 2 && AsyncTasks.Count > 0) { AsyncTasks.Dequeue().Invoke(); } } Animator.Instance.Update(); Duel.Update(); foreach (var act in FrameActions) { act(); } }