SunsetHigh.Panel.onRefocus C# (CSharp) Method

onRefocus() public method

Invoked when a newer panel has been unfocused, bringing the focus back to this panel
public onRefocus ( ) : void
return void
        public virtual void onRefocus()
        {
        }

Usage Example

Ejemplo n.º 1
0
 public static void goBack()
 {
     if (!menuOpen)
         return;
     nullCheck();
     Panel popped = panelStack.Pop();
     popped.onExit();
     PanelGroupSorter.panelOut(popped);
     if (panelStack.Count == 0)
     {
         close();
     }
     else
     {
         activePanel = panelStack.Peek();
         activePanel.onRefocus();
         menuArrow.moveToActivePanel(activePanel);
     }
 }