From 33a72d16edfc03acdab4e3d75367c7393bf31106 Mon Sep 17 00:00:00 2001 From: Cviat Date: Wed, 28 Jan 2026 17:00:47 +0300 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BD=D0=BE=D0=B2=D0=BE=D0=B9=20=D0=B8=D0=B3?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=BE=D0=B9=20=D1=82=D0=B5=D0=BC=D1=8B=20"?= =?UTF-8?q?=D0=94=D0=B5=D0=BD=D1=8C=5F2"=20=D0=B8=20=D0=BE=D0=B1=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B=20=D0=BF=D0=B0=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D1=80=D1=8B=20=D0=B2=D0=BE=D0=B4=D1=8B=20?= =?UTF-8?q?=D0=B2=20EnvironmentManager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scenes/test.unity | 4 ++-- Assets/Scripts/EnvironmentManager.cs | 16 ++++++++++------ Assets/Scripts/Settings/SettingsData.cs | 2 +- 3 files changed, 13 insertions(+), 9 deletions(-) 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() { "Выдавать", "Не выдавать" },