Exemplo n.º 1
0
        public ScreenKeySelectDialog(MainPanelController controller)
        {
            _controller = controller;
            InitializeComponent();

            List <string> Keys = Enum.GetNames(typeof(Keys)).ToList();

            cbKey.DataSource = Keys;
        }
    // Start is called before the first frame update
    void Start()
    {
        conveyer       = (ConveyerController)FindObjectOfType(typeof(ConveyerController));
        chefController = (ChefController)FindObjectOfType(typeof(ChefController));
        mainPanel      = (MainPanelController)FindObjectOfType(typeof(MainPanelController));

        startPos = transform.position;
        back     = false;

        sphere      = null;
        isDraggable = true;
        isTiming    = false;
        timer       = time;
    }
Exemplo n.º 3
0
        public MainPanel()
        {
            InitializeComponent();
            _controller            = UnityConfig.UnityContainer.Resolve <MainPanelController>();
            _controller._mainPanel = this;

            if (Globals.debugEnabled)
            {
                Globals.debugWindow = new DebugWindow();
                Globals.debugWindow.Show();
            }

            this.Closing += Shutdown;
        }
Exemplo n.º 4
0
        public override void Init(IModule module)
        {
            base.Init(module);

            var viewScript = InstantiateView <MainPanelView>("GameMain/Prefabs/MainPanel");

            _mainControl      = new MainPanelController();
            _mainControl.view = viewScript;

            _userInfoController      = new UserInfoController();
            _userInfoController.View = viewScript.UserInfoView;

            RegisterController(_mainControl);
            RegisterController(_userInfoController);

            RegisterModel <ActivityPopupWindowModel>();

            _mainControl.Start();

//            if (GuideManager.GetRemoteGuideStep(GuideTypePB.MainGuide) < GuideConst.MainStep_MainStory1_6_Fail)
//            {
//                viewScript.ShowAll(false);
//            }
        }