Ejemplo n.º 1
0
        private void CreateAndShowNewView()
        {
            var viewType   = _FrameController.GetNextViewType();
            var switchType = _FrameController.GetNextViewSwitchType();

            if (_CurrentView != null)
            {
                _CurrentView.Deactivate();
            }
            _CurrentView = _ViewManager.CreateView(viewType);
            _CurrentView.Activate(switchType);
        }
Ejemplo n.º 2
0
        public void LoadView()
        {
            uiRoot = GameObject.FindGameObjectWithTag("UIROOT");
            uiRoot.AddComponent <DontDestroy>();
            uiCanvas = uiRoot.GetComponentInChildren <Canvas>();

            Object[] views = Resources.LoadAll("View");
            foreach (var view in views)
            {
                U3DView monoView = viewMgr.CreateView <U3DView>(view);
                AddToUIRoot(monoView.gameObject);
            }
        }
Ejemplo n.º 3
0
 public IView CreateView(string viewId, object payload = null)
 {
     return(IViewManager.CreateView(viewId, payload));
 }
Ejemplo n.º 4
0
 public void CreateView(string viewName, string viewDefinition, Transaction transaction)
 {
     _viewManager.CreateView(viewName, viewDefinition, transaction);
 }