Exemplo n.º 1
0
 void StoreClick()
 {
     if (store == null)
     {
         Facade.ShowPanel <StorePanel>(panel =>
                                       { panel.gameObject.SetActive(true); store = panel; });
         return;
     }
     if (store.gameObject.activeSelf)
     {
         store.HidePanel();
     }
     else
     {
         store.ShowPanel();
     }
 }
Exemplo n.º 2
0
 void StoreClick()
 {
     if (store == null)
     {
         Facade.Instance.ShowPanel <StorePanel>(Utility.UI.GetUIFullRelativePath("StorePanel"), panel =>
                                                { panel.gameObject.name = "StorePanel"; panel.gameObject.SetActive(true); store = panel; });
         return;
     }
     if (store.gameObject.activeSelf)
     {
         store.HidePanel();
     }
     else
     {
         store.ShowPanel();
     }
 }