コード例 #1
0
        protected override void OnInitialize()
        {
            this.settingsController = Container.Instance.Instantiate <SettingsViewController>();
            this.settingsController.Initialize();
            this.settingsController.View.Hide();

            this.feedbackController = Container.Instance.Instantiate <FeedbackViewController>();
            this.feedbackController.Initialize();
            this.feedbackController.View.Hide();

            View.EnterSettings += ViewOnEnterSettings;
            View.EnterFeedback += ViewOnEnterFeedback;
            View.EnterMainMenu += ViewOnEnterMainMenu;
            View.ExitGame      += ViewOnExitGame;
        }
コード例 #2
0
        protected override void OnInitialize()
        {
            this.settingsController = Container.Instance.Instantiate <SettingsViewController>();
            this.settingsController.Initialize();
            this.settingsController.View.Hide();

            if (this.characterDataRepository.FindAll().Count == 0)
            {
                View.HidePlayButton();
            }
            else
            {
                View.ShowPlayButton();
            }

            View.PlayButtonClicked            += OnPlayButtonClicked;
            View.CreateCharacterButtonClicked += OnCreateCharacterButtonClicked;
            View.SettingsButtonClicked        += OnSettingsButtonClicked;
            View.QuitButtonClicked            += OnQuitButtonClicked;
        }