예제 #1
0
        public void Initialize()
        {
            _defaultSettings = LoadFileDataFromAssets <Settings>($"Data/{SettingsName}");

            if (TryLoadPersistentFileData <SettingsContext>(SettingsName, out var savedSettings))
            {
                _settings = savedSettings;
            }
            else
            {
                RestoreDefaultSettings();
            }

            _settingsView.Attach(_settings);
        }