Exemple #1
0
 protected virtual void Awake()
 {
     //Base controller is created
     //Create the base controller in awake if it hasn't been created yet
     if (baseController == null)
     {
         baseController = CreateController();
     }
 }
Exemple #2
0
        private PanelViewControllerBase CreateController()
        {
            //Panel View always starts in the 'disappeared' state
            //If we are supplying a serialized view then we need to enforce that rule here
            if (panelView != null)
            {
                panelView.gameObject.SetActive(false);
            }

            var controller = new PanelViewControllerBase(panelType, panelView,
                                                         ViewDidLoad,
                                                         ViewWillAppear,
                                                         ViewDidAppear,
                                                         ViewWillDisappear,
                                                         ViewDidDisappear);

            controller.SetParentViewContainer(this);

            return(controller);
        }
 protected PanelViewControllerBase(PanelType type)
 {
     baseController = new PanelViewControllerBase(type, ViewDidLoad, ViewWillAppear, ViewDidAppear, ViewWillDisappear, ViewDidDisappear);
 }