private void OnPause(IUIBase ui) { if (!ui.Pause) { ui.Pause = true; ui.OnDisableUI(); } }
public void DisableUI(IUIBase uiBase) { if (uiBase == null) { throw new System.ArgumentNullException(nameof(uiBase)); } uiBase.OnDisableUI(); }