void PreUpdate() { InputHelper.PreUpdate(); FramePhase = FramePhase.Pre; CodeHelperUnity.invokeBeforeFrame.InvokeAll(); //EVERYTHING THAT'S NOT INTERNAL SHOULD BE AFTER THIS LINE UnityPreUpdateMethods?.Invoke(); OnUnityPreUpdateMethods?.Invoke(); OnUnityPreUpdateMethods = null; }
void PreUpdate() { InputHelper.inputInfoFromKey.ForEach(thisPair => thisPair.Value.UpdateInfo()); FramePhase = FramePhase.pre; CodeHelper.invokeBeforeFrame.InvokeAll(); //EVERTHING THATS NOT INTERNAL SHOULD BE AFTER THIS LINE UnityPreUpdateMethods?.Invoke(); OnUnityPreUpdateMethods?.Invoke(); OnUnityPreUpdateMethods = null; }