diff --git a/Assets/DemoGame/GameScript/Hotfix/UI/UIInfo.cs b/Assets/DemoGame/GameScript/Hotfix/UI/UIInfo.cs deleted file mode 100644 index 04512ac..0000000 --- a/Assets/DemoGame/GameScript/Hotfix/UI/UIInfo.cs +++ /dev/null @@ -1,24 +0,0 @@ -using TMPro; -using UnityEngine; - -namespace ZC -{ - class UIInfo : MonoBehaviour - { - [SerializeField] public IUI ui; - public TMP_FontAsset font; - - public void SetStart(IUI ui, TMP_FontAsset font) - { - this.ui = ui; - this.font = font; - - return; - var findChildDeeps = this.transform.FindChildDeeps(); - foreach (var tmpText in findChildDeeps) - { - tmpText.font = font; - } - } - } -} \ No newline at end of file diff --git a/Assets/DemoGame/GameScript/Hotfix/UI/UIInfo.cs.meta b/Assets/DemoGame/GameScript/Hotfix/UI/UIInfo.cs.meta deleted file mode 100644 index 071146d..0000000 --- a/Assets/DemoGame/GameScript/Hotfix/UI/UIInfo.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: aa6c9b462319459ca494d7979967fc65 -timeCreated: 1712128595 \ No newline at end of file diff --git a/Assets/DemoGame/GameScript/Hotfix/UI/UIManager.cs b/Assets/DemoGame/GameScript/Hotfix/UI/UIManager.cs index bee61f9..5e9b196 100644 --- a/Assets/DemoGame/GameScript/Hotfix/UI/UIManager.cs +++ b/Assets/DemoGame/GameScript/Hotfix/UI/UIManager.cs @@ -71,8 +71,8 @@ namespace ZC //#if UNITY_EDITOR // view - var addComponent = gameObject.GetComponent(); - addComponent.SetStart(ui, this.font); +// var addComponent = gameObject.GetComponent(); +// addComponent.SetStart(ui, this.font); //#endif return ui; diff --git a/Assets/DemoGame/GameScript/Loader/MonoBehaviour/UI.meta b/Assets/DemoGame/GameScript/Loader/MonoBehaviour/UI.meta new file mode 100644 index 0000000..6734b9f --- /dev/null +++ b/Assets/DemoGame/GameScript/Loader/MonoBehaviour/UI.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: c36d07c6939d47cab6cf3c3da4a0e014 +timeCreated: 1721358085 \ No newline at end of file diff --git a/Assets/DemoGame/GameScript/Loader/MonoBehaviour/UI/UIInfo.cs b/Assets/DemoGame/GameScript/Loader/MonoBehaviour/UI/UIInfo.cs new file mode 100644 index 0000000..897ae03 --- /dev/null +++ b/Assets/DemoGame/GameScript/Loader/MonoBehaviour/UI/UIInfo.cs @@ -0,0 +1,24 @@ +using TMPro; +using UnityEngine; + +namespace ZC +{ + class UIInfo : MonoBehaviour + { +// [SerializeField] public IUI ui; +// public TMP_FontAsset font; +// +// public void SetStart(IUI ui, TMP_FontAsset font) +// { +// this.ui = ui; +// this.font = font; +// +// return; +// var findChildDeeps = this.transform.FindChildDeeps(); +// foreach (var tmpText in findChildDeeps) +// { +// tmpText.font = font; +// } +// } + } +} \ No newline at end of file diff --git a/Assets/DemoGame/GameScript/Loader/MonoBehaviour/UI/UIInfo.cs.meta b/Assets/DemoGame/GameScript/Loader/MonoBehaviour/UI/UIInfo.cs.meta new file mode 100644 index 0000000..b12e262 --- /dev/null +++ b/Assets/DemoGame/GameScript/Loader/MonoBehaviour/UI/UIInfo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d5100ab94e5c4164e9a1e9bb2ed65adb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: