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