diff --git a/Assets/Scenes/test.unity b/Assets/Scenes/test.unity index 92d47b6e..85aa9c51 100644 --- a/Assets/Scenes/test.unity +++ b/Assets/Scenes/test.unity @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:63553b6fd3c98462a10cf2e58c12dba7ace0f4cf7f8acebce06ab21df565d801 -size 5065040 +oid sha256:3f36235eeb4b5c97651dd5c3da948db9464565754cd94024bfa444fe38fdd47f +size 5065760 diff --git a/Assets/Scripts/EnvironmentManager.cs b/Assets/Scripts/EnvironmentManager.cs index 849fc524..5884d215 100644 --- a/Assets/Scripts/EnvironmentManager.cs +++ b/Assets/Scripts/EnvironmentManager.cs @@ -24,14 +24,14 @@ public class EnvironmentPreset [Range(0, 8)] public float lightIntensity = 1.0f; [Header("Вода (Остров)")] - [ColorUsage(true, true)] public Color waterShallowColorIsland; - [ColorUsage(true, true)] public Color waterDeepColorIsland; - [ColorUsage(true, true)] public Color waterFresnelColorIsland; + public Color waterShallowColorIsland; + public Color waterDeepColorIsland; + public Color waterFresnelColorIsland; [Header("Вода (Океан)")] - [ColorUsage(true, true)] public Color waterShallowColorOcean; - [ColorUsage(true, true)] public Color waterDeepColorOcean; - [ColorUsage(true, true)] public Color waterFresnelColorOcean; + public Color waterShallowColorOcean; + public Color waterDeepColorOcean; + public Color waterFresnelColorOcean; [Header("UI Курсор")] public Color cursorColor = Color.white; @@ -71,6 +71,10 @@ private void OnSettingsChanged() { SwitchToPreset(1); } + else if(timeOfDay == "День_2") + { + SwitchToPreset(2); + } } /// diff --git a/Assets/Scripts/Settings/SettingsData.cs b/Assets/Scripts/Settings/SettingsData.cs index 3b6b7421..c605b75d 100644 --- a/Assets/Scripts/Settings/SettingsData.cs +++ b/Assets/Scripts/Settings/SettingsData.cs @@ -80,7 +80,7 @@ public static List CreateBuiltinDefaults() options: new List() { "Telegram", "WhatsApp" ,"Всё"}, defaultIndex: 0)); settings.Add(new SettingOption(settingName: "Игровая тема", - options: new List() { "День", "Ночь" }, + options: new List() { "День","День_2" ,"Ночь" }, defaultIndex: 0)); settings.Add(new SettingOption(settingName: "Выдача призов при игре с ботом", options: new List() { "Выдавать", "Не выдавать" },