From af8062ec59e2ef6b21bf3de8357e54f06fa08c7d Mon Sep 17 00:00:00 2001 From: se_ga Date: Sat, 18 Apr 2026 12:19:27 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D0=B3=20VitrinaView?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Fonts/NEW/NexaRegular COOL.asset | 2 +- Assets/Scripts/PrizeSystem/VitrinaView.cs | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/Assets/Fonts/NEW/NexaRegular COOL.asset b/Assets/Fonts/NEW/NexaRegular COOL.asset index e5367a6..19538b1 100644 --- a/Assets/Fonts/NEW/NexaRegular COOL.asset +++ b/Assets/Fonts/NEW/NexaRegular COOL.asset @@ -11349,7 +11349,7 @@ Material: - _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767} - _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0} - _FaceColor: {r: 1, g: 1, b: 1, a: 1} - - _GlowColor: {r: 0, g: 0.097905874, b: 1, a: 1} + - _GlowColor: {r: 0, g: 0.38125563, b: 1, a: 1} - _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767} - _OutlineColor: {r: 0.554717, g: 0.554717, b: 0.554717, a: 1} - _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1} diff --git a/Assets/Scripts/PrizeSystem/VitrinaView.cs b/Assets/Scripts/PrizeSystem/VitrinaView.cs index dc3c241..dc3e4fe 100644 --- a/Assets/Scripts/PrizeSystem/VitrinaView.cs +++ b/Assets/Scripts/PrizeSystem/VitrinaView.cs @@ -16,7 +16,6 @@ public class VitrinaView : MonoBehaviour if (instance == null) { instance = GameObject.FindObjectOfType(); - //CharacterEventBus.Instance.OnCharacterAppeared.AddListener(instance.ActivateIfNeed); instance.Deactivate(); } return instance; @@ -33,13 +32,6 @@ public class VitrinaView : MonoBehaviour [SerializeField] private Color AvailableEmptyColor; [SerializeField] private Color NotAvailableColor; - //private void Start() - //{ - // instance = this; - // CharacterEventBus.Instance.OnCharacterAppeared.AddListener(ActivateIfNeed); - - //} - public void ActivateIfNeed() { if (GameManager.instance.gameMode == GameMode.pvp) @@ -77,16 +69,10 @@ public class VitrinaView : MonoBehaviour { try { - // Получаем готовые к выдаче ячейки int[] readyBoxes = await PrizeStandController.GetReadyBoxesAsync(); - - // Получаем ячейки, которые нужно выдать из VitrinaPrize int[] boxesToGive = vitrinaPrize?.Boxes ?? new int[0]; - // Создаем HashSet для быстрого поиска готовых ячеек HashSet readyBoxesSet = new HashSet(readyBoxes); - - // Создаем HashSet для быстрого поиска ячеек, которые нужно выдать HashSet boxesToGiveSet = new HashSet(boxesToGive); // Проходим по всем ячейкам (индексы 0-based, номера ячеек 1-based) @@ -122,7 +108,6 @@ public class VitrinaView : MonoBehaviour if (text != null) { text.color = NotAvailableColor; - // НЕ ОЧИЩАЕМ ТЕКСТ! Оставляем номер ячейки } Cells[i].color = NotAvailableColor; } @@ -138,7 +123,4 @@ public class VitrinaView : MonoBehaviour { gameObject.SetActive(false); } - - - }