Beispiel #1
0
        /// <summary>
        /// On register mediator
        /// </summary>
        public override void OnRegister()
        {
            OnLoadMainMenuSignal.AddListener(() => { View.ShowContent(); });
            OnLoadSelectLevelSignal.AddListener(() =>
            {
                View.HideContent();
            });

            View.OnLoadSelectLevel += () => { OnLoadSelectLevelSignal.Dispatch(); };
            View.OnLoadSettings    += () => { OnLoadSettingsSignal.Dispatch(); };
        }
Beispiel #2
0
        /// <summary>
        /// On register mediator
        /// </summary>
        public override void OnRegister()
        {
            OnLoadMainMenuSignal.AddListener(() => { View.ShowContent(); });
            OnLoadSelectLevelSignal.AddListener(() =>
            {
                View.HideContent();
            });

            View.OnInitBestScore   += text => { text.text = $"Best Score : {PlayerSettingsService.InitBestScore()}"; };
            View.OnLoadSelectLevel += () => { OnLoadSelectLevelSignal.Dispatch(); };
            View.OnLoadSettings    += () => { OnLoadSettingsSignal.Dispatch(); };
        }