public static void CodeUpdate() { // Calc when to run a 'CodeUpdate' if (Time.time >= lastFrameTime + gameOptions.codeFrameDelay) { PacketManager.CodeUpdate(); NodeManager.CodeUpdate(); foreach (PlayerScript console in consoles.Values) { console.CodeUpdate(); } lastFrameTime = Time.time; } // This happens every frame consoles[activeConsole].KeepFocus(); }