Exemplo n.º 1
0
 public static BasicMenu getBasicMenu(this Panel_Base panel) =>
 panel.TryCast <Panel_ChooseSandbox>()?.m_BasicMenu ?? panel.TryCast <Panel_ChooseChallenge>()?.m_BasicMenu;
Exemplo n.º 2
0
 public static GameObject getDeleteButton(this Panel_Base panel) =>
 panel.TryCast <Panel_ChooseSandbox>()?.m_MouseButtonDelete ?? panel.TryCast <Panel_ChooseChallenge>()?.m_MouseButtonDelete;
Exemplo n.º 3
0
 public static UtilsPanelChoose.DetailsObjets getDetails(this Panel_Base panel) =>
 panel.TryCast <Panel_ChooseSandbox>()?.m_DetailObjects ?? panel.TryCast <Panel_ChooseChallenge>()?.m_DetailObjects;
Exemplo n.º 4
0
 public static SaveSlotInfo getSlotToDelete(this Panel_Base panel) =>
 panel.TryCast <Panel_ChooseSandbox>()?.m_SlotToDelete ?? panel.TryCast <Panel_ChooseChallenge>()?.m_SlotToDelete;
Exemplo n.º 5
0
 public static SaveSlotType getSlotType(this Panel_Base panel) =>
 panel.TryCast <Panel_ChooseSandbox>()? SaveSlotType.SANDBOX: SaveSlotType.CHALLENGE;
Exemplo n.º 6
0
 public static void onClickBack(this Panel_Base panel)
 {
     panel.TryCast <Panel_ChooseSandbox>()?.OnClickBack();
     panel.TryCast <Panel_ChooseChallenge>()?.OnClickBack();
 }
Exemplo n.º 7
0
 public static void enable(this Panel_Base panel, bool enabled)
 {
     panel.TryCast <Panel_ChooseSandbox>()?.Enable(enabled);
     panel.TryCast <Panel_ChooseChallenge>()?.Enable(enabled);
 }