Increase pre-stage font-size when on mobile
This commit is contained in:
parent
d9bdd30ab6
commit
6cc8a4e6b3
2 changed files with 6 additions and 3 deletions
|
@ -34,8 +34,8 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 70.3, y: -35.5}
|
||||||
m_SizeDelta: {x: 160, y: 30}
|
m_SizeDelta: {x: 300.5, y: 101.1}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &5829552964612260718
|
--- !u!222 &5829552964612260718
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
@ -71,7 +71,7 @@ MonoBehaviour:
|
||||||
m_FontStyle: 1
|
m_FontStyle: 1
|
||||||
m_BestFit: 0
|
m_BestFit: 0
|
||||||
m_MinSize: 1
|
m_MinSize: 1
|
||||||
m_MaxSize: 40
|
m_MaxSize: 50
|
||||||
m_Alignment: 0
|
m_Alignment: 0
|
||||||
m_AlignByGeometry: 0
|
m_AlignByGeometry: 0
|
||||||
m_RichText: 0
|
m_RichText: 0
|
||||||
|
|
|
@ -13,6 +13,9 @@ namespace src.UI
|
||||||
public void Start()
|
public void Start()
|
||||||
{
|
{
|
||||||
_stageText = GetComponentInChildren<Text>();
|
_stageText = GetComponentInChildren<Text>();
|
||||||
|
#if UNITY_ANDROID || UNITY_IOS
|
||||||
|
_stageText.fontSize = 50;
|
||||||
|
#endif
|
||||||
_stageText.text = $"Stage {_gameStateManager.Level}";
|
_stageText.text = $"Stage {_gameStateManager.Level}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue