Exemplo n.º 1
0
 public void addPopup(Type panel, params object[] _uiParams)
 {
     if (!dicOpenUIs.ContainsKey(panel))
     {
         string     _path      = UIPathDefines.UI_PREFAB + panel;
         GameObject _uiObject  = MonoBehaviour.Instantiate(Resources.Load(_path)) as GameObject;
         PopupStack popupStack = new PopupStack(_uiObject, _uiParams);
         dicOpenUIs.Add(panel, popupStack);
     }
 }
Exemplo n.º 2
0
 public void NextScene(string SceneName)
 {
     if (SceneName != "Popup")
     {
         PushSceneName(Application.loadedLevelName);
         SceneManager.LoadScene(SceneName);
     }
     else
     {
         PopupStack.Push(Instantiate(Resources.Load <GameObject>("Popup"), GameObject.Find("Canvas").transform));
     }
     //Test Git
 }
 /// <summary>
 /// Initialize a new instance of the VisualPopupManager class.
 /// </summary>
 private VisualPopupManager()
 {
     _stack = new PopupStack();
 }