From f1e5df1fc8eadd0eb27e0a6870501fa25a42b5a1 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 12 十一月 2025 11:13:53 +0800
Subject: [PATCH] 262 修复切换服务器报错
---
Main/Component/UI/Common/FontSwitch.cs | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/Main/Component/UI/Common/FontSwitch.cs b/Main/Component/UI/Common/FontSwitch.cs
index 997a11d..d82cc72 100644
--- a/Main/Component/UI/Common/FontSwitch.cs
+++ b/Main/Component/UI/Common/FontSwitch.cs
@@ -15,16 +15,15 @@
[ExecuteAlways]
private void Awake()
{
- // TODO YYL
- // switch (m_FontType)
- // {
- // case FontType.Preferred:
- // text.font = FontUtility.preferred;
- // break;
- // case FontType.Secondary:
- // text.font = FontUtility.secondary;
- // break;
- // }
+ switch (m_FontType)
+ {
+ case FontType.Preferred:
+ text.font = FontUtility.preferred;
+ break;
+ case FontType.Secondary:
+ text.font = FontUtility.secondary;
+ break;
+ }
}
public enum FontType
--
Gitblit v1.8.0