Exemple #1
0
        private object GetCoreSettings(Type t, Type settingsType)
        {
            var e = new SettingsLoadArgs(t, settingsType);

            OnLoadSettings?.Invoke(this, e);
            return(e.Settings);
        }
Exemple #2
0
        protected override void Start()
        {
            if (PlayerSettingsService.HasReturnToSelectLevel)
            {
                OnLoadSelectLevel?.Invoke();
            }

            selectLevelBtn.onClick.AddListener(() => { OnLoadSelectLevel?.Invoke(); });
            settingsBtn.onClick.AddListener(() =>
            {
                content.SetActive(false);
                OnLoadSettings?.Invoke();
            });
            exitGameBtn.onClick.AddListener(Application.Quit);
        }
Exemple #3
0
        protected override void Start()
        {
            OnInitBestScore?.Invoke(_scoreTxt);

            if (PlayerSettingsService.HasReturnToSelectLevel)
            {
                OnLoadSelectLevel?.Invoke();
            }

            _selectLevelBtn.onClick.AddListener(() => { OnLoadSelectLevel?.Invoke(); });
            _settingsBtn.onClick.AddListener(() =>
            {
                _content.SetActive(false);
                OnLoadSettings?.Invoke();
            });
            _exitGameBtn.onClick.AddListener(Application.Quit);
        }