From 6cc8a4e6b3118a9a0ace411b6970d4ec0c0771a8 Mon Sep 17 00:00:00 2001 From: Denis NUTIU Date: Sun, 14 Jul 2019 11:11:44 +0300 Subject: [PATCH] Increase pre-stage font-size when on mobile --- Assets/Prefabs/UI/PreStageUI.prefab | 6 +++--- Assets/Scripts/src/UI/PreStageUiScript.cs | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Assets/Prefabs/UI/PreStageUI.prefab b/Assets/Prefabs/UI/PreStageUI.prefab index ccefa2c..02e891f 100644 --- a/Assets/Prefabs/UI/PreStageUI.prefab +++ b/Assets/Prefabs/UI/PreStageUI.prefab @@ -34,8 +34,8 @@ RectTransform: m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_AnchorMin: {x: 0.5, y: 0.5} m_AnchorMax: {x: 0.5, y: 0.5} - m_AnchoredPosition: {x: 0, y: 0} - m_SizeDelta: {x: 160, y: 30} + m_AnchoredPosition: {x: 70.3, y: -35.5} + m_SizeDelta: {x: 300.5, y: 101.1} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &5829552964612260718 CanvasRenderer: @@ -71,7 +71,7 @@ MonoBehaviour: m_FontStyle: 1 m_BestFit: 0 m_MinSize: 1 - m_MaxSize: 40 + m_MaxSize: 50 m_Alignment: 0 m_AlignByGeometry: 0 m_RichText: 0 diff --git a/Assets/Scripts/src/UI/PreStageUiScript.cs b/Assets/Scripts/src/UI/PreStageUiScript.cs index aefde31..d05826e 100644 --- a/Assets/Scripts/src/UI/PreStageUiScript.cs +++ b/Assets/Scripts/src/UI/PreStageUiScript.cs @@ -13,6 +13,9 @@ namespace src.UI public void Start() { _stageText = GetComponentInChildren(); +#if UNITY_ANDROID || UNITY_IOS + _stageText.fontSize = 50; +#endif _stageText.text = $"Stage {_gameStateManager.Level}"; } }