private object GetCoreSettings(Type t, Type settingsType) { var e = new SettingsLoadArgs(t, settingsType); OnLoadSettings?.Invoke(this, e); return(e.Settings); }
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); }
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); }