Exemplo n.º 1
0
        public void OpenPanel(GUIPanel panel)
        {
            if (!panel.IsInitialized)
            {
                panel.Initialize();
            }

            foreach (var activePanel in ActivePanels)
            {
                activePanel.Close();
            }

            ActivePanels.Clear();

            LeanTween.move(gameObject, gameObject.transform.position, TransitionWaitTime).setOnComplete(
                () =>
            {
                ActivePanels.Add(panel);
                panel.Open();
            });
        }
Exemplo n.º 2
0
 public void OpenPanelOnTop(GUIPanel panel)
 {
     ActivePanels.Add(panel);
     panel.Open();
 }