private void OnApplicationFocus(bool focus) { if (focus) { ApplicationOnFocus?.Invoke(); } else { ApplicationOnPause?.Invoke(); } }
void OnApplicationPause(bool pauseStatus) => ApplicationOnPause?.Invoke(pauseStatus);