Esempio n. 1
0
        protected virtual void ExchangeTabInPanel(ViewStack tabsPanel, string prefabNameOfNewView)
        {
            var lastShownView = tabsPanel.GetLatestView();

            tabsPanel.SwitchToView(prefabNameOfNewView);
            lastShownView.Destroy();
        }
Esempio n. 2
0
 public static GameObject SwitchToView(this ViewStack target, GameObject newView, int siblingIndex = -1)
 {
     return(target.ShowView(newView, target.GetLatestView(), siblingIndex));
 }
Esempio n. 3
0
 public static GameObject SwitchToView(this ViewStack target, string prefabName, int siblingIndex = -1)
 {
     return(target.ShowView(prefabName, target.GetLatestView(), siblingIndex));
 }