null fix
This commit is contained in:
parent
8d5b903b1a
commit
1818d99caf
@ -75,8 +75,11 @@ namespace NEG.UI.UnityUi
|
||||
base.UpdatePopupsState(forceShow, priority, data);
|
||||
if(inputModule.CurrentSelectionSource != SelectionSource.Direction)
|
||||
return;
|
||||
if (CurrentPopup == null && (EventSystem.current.currentSelectedGameObject != null || !EventSystem.current.currentSelectedGameObject.activeInHierarchy))
|
||||
|
||||
if (CurrentPopup == null && (EventSystem.current.currentSelectedGameObject == null || !EventSystem.current.currentSelectedGameObject.activeInHierarchy))
|
||||
{
|
||||
if(((MonoWindow)CurrentMainWindow).DefaultSelectedItem == null)
|
||||
return;
|
||||
EventSystem.current.SetSelectedGameObject(((MonoWindow)CurrentMainWindow).DefaultSelectedItem);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user