wip : ui flow
This commit is contained in:
@@ -98,7 +98,10 @@ namespace OctoCore.Navigation
|
||||
public void OnTogglePanel()
|
||||
{
|
||||
if (_optionalPanel)
|
||||
_optionalPanel.SetActive(!_optionalPanel.activeSelf);
|
||||
{
|
||||
bool newState = !_optionalPanel.activeSelf;
|
||||
_optionalPanel.SetActive(newState);
|
||||
}
|
||||
}
|
||||
|
||||
// --- Add your custom button methods below ---
|
||||
@@ -112,5 +115,10 @@ namespace OctoCore.Navigation
|
||||
{
|
||||
EventSystem.current.SetSelectedGameObject(_mainPanelDefaultButton.gameObject);
|
||||
}
|
||||
|
||||
public void ClearButtonPersistence()
|
||||
{
|
||||
MultiTargetButton.ClearPersistence();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user