From d083a5dc9cd8aa4eae9aeaf0d0ef16088890533f Mon Sep 17 00:00:00 2001 From: dddushesss <37773701+dddushesss@users.noreply.github.com> Date: Thu, 30 Dec 2021 19:51:11 +0300 Subject: [PATCH] fixes --- Assets/Prefab/Hex Cell Label.prefab | 4 ++-- Assets/Scripts/Controller/GameInit.cs | 5 +---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Assets/Prefab/Hex Cell Label.prefab b/Assets/Prefab/Hex Cell Label.prefab index 06a732c0..4593a8b8 100644 --- a/Assets/Prefab/Hex Cell Label.prefab +++ b/Assets/Prefab/Hex Cell Label.prefab @@ -92,8 +92,8 @@ MonoBehaviour: m_faceColor: serializedVersion: 2 rgba: 4294967295 - m_fontSize: 1 - m_fontSizeBase: 1 + m_fontSize: 0.3 + m_fontSizeBase: 0.3 m_fontWeight: 400 m_enableAutoSizing: 0 m_fontSizeMin: 18 diff --git a/Assets/Scripts/Controller/GameInit.cs b/Assets/Scripts/Controller/GameInit.cs index 631fa0b9..27e5f75a 100644 --- a/Assets/Scripts/Controller/GameInit.cs +++ b/Assets/Scripts/Controller/GameInit.cs @@ -51,10 +51,7 @@ namespace Controller var unitFactory = new UnitFactory(units); hexGrid.OnGridLoaded += unitFactory.Spawn; - - var paintedController = new PaintedController(); - - hexGrid.OnHexPainted += paintedController.SetHexColors; + }