/// <summary> /// Needs to be called once per frame. /// Activates all the queued up ops. /// </summary> public static void Update() { for (int i = 0; i < ops.Count; i++) { FrameDelayedOperation op = ops[i]; op.Callback(op); } ops.Clear(); }
public static void Enqueue(FrameDelayedOperation op) { ops.Add(op); }