private void OnUIMenuDestroyed(UIMenu uiMenu) { if (UIMenuList == null) { return; } UIMenuList.Remove(uiMenu); }