protected virtual void OpenNextWindow(MenuWindow nextWindow) { if (nextWindow == null) { Debug.LogAssertion("Window is not assigned", gameObject); return; } Close(); nextWindow.Open(); }