Exemplo n.º 1
0
        public Task LoadServiceStateAsync(SettingsStateMap stateMap)
        {
            var settings = stateMap.GetState <Settings>() ?? new Settings();

            BaseRevealSpeed = settings.BaseRevealSpeed;
            return(Task.CompletedTask);
        }
Exemplo n.º 2
0
        public virtual UniTask LoadServiceStateAsync(SettingsStateMap stateMap)
        {
            var settings = stateMap.GetState <Settings>() ?? new Settings();

            BaseRevealSpeed = settings.BaseRevealSpeed;
            BaseAutoDelay   = settings.BaseAutoDelay;
            return(UniTask.CompletedTask);
        }
Exemplo n.º 3
0
        public virtual UniTask LoadServiceStateAsync(SettingsStateMap stateMap)
        {
            var settings = stateMap.GetState <Settings>();

            if (settings is null) // Apply default settings.
            {
                BaseRevealSpeed = Configuration.DefaultBaseRevealSpeed;
                BaseAutoDelay   = Configuration.DefaultBaseAutoDelay;
                return(UniTask.CompletedTask);
            }

            BaseRevealSpeed = settings.BaseRevealSpeed;
            BaseAutoDelay   = settings.BaseAutoDelay;
            return(UniTask.CompletedTask);
        }