public Task LoadServiceStateAsync(SettingsStateMap stateMap) { var settings = stateMap.GetState <Settings>() ?? new Settings(); BaseRevealSpeed = settings.BaseRevealSpeed; return(Task.CompletedTask); }
public virtual UniTask LoadServiceStateAsync(SettingsStateMap stateMap) { var settings = stateMap.GetState <Settings>() ?? new Settings(); BaseRevealSpeed = settings.BaseRevealSpeed; BaseAutoDelay = settings.BaseAutoDelay; return(UniTask.CompletedTask); }
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); }