From dc4e46518356c93296e2789f99f5933620d54b3a Mon Sep 17 00:00:00 2001 From: zc <1062808664@qq.com> Date: Wed, 30 Jul 2025 08:24:03 +0800 Subject: [PATCH] add updatelog --- Assets/Scripts/Runtime/UI/UpdateLog.meta | 3 +++ .../Scripts/Runtime/UI/UpdateLog/UpdateLog.cs | 20 +++++++++++++++++++ .../Runtime/UI/UpdateLog/UpdateLog.cs.meta | 3 +++ 3 files changed, 26 insertions(+) create mode 100644 Assets/Scripts/Runtime/UI/UpdateLog.meta create mode 100644 Assets/Scripts/Runtime/UI/UpdateLog/UpdateLog.cs create mode 100644 Assets/Scripts/Runtime/UI/UpdateLog/UpdateLog.cs.meta diff --git a/Assets/Scripts/Runtime/UI/UpdateLog.meta b/Assets/Scripts/Runtime/UI/UpdateLog.meta new file mode 100644 index 0000000..06b5b45 --- /dev/null +++ b/Assets/Scripts/Runtime/UI/UpdateLog.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: bdc0fc1a250d42af9d5742ca9373dfee +timeCreated: 1752802595 \ No newline at end of file diff --git a/Assets/Scripts/Runtime/UI/UpdateLog/UpdateLog.cs b/Assets/Scripts/Runtime/UI/UpdateLog/UpdateLog.cs new file mode 100644 index 0000000..57d8a68 --- /dev/null +++ b/Assets/Scripts/Runtime/UI/UpdateLog/UpdateLog.cs @@ -0,0 +1,20 @@ +using System; +using TMPro; +using UnityEngine; +using UnityEngine.UI; + +namespace HK +{ + public class UpdateLog: MonoBehaviour + { + string assetPath = Application.streamingAssetsPath; + private TMP_Text _text; + private Button btnClose; + + private void Start() + { + var textAsset = ResourcesManager.Instance.Load(assetPath); + _text.text = textAsset.text; + } + } +} \ No newline at end of file diff --git a/Assets/Scripts/Runtime/UI/UpdateLog/UpdateLog.cs.meta b/Assets/Scripts/Runtime/UI/UpdateLog/UpdateLog.cs.meta new file mode 100644 index 0000000..ba94403 --- /dev/null +++ b/Assets/Scripts/Runtime/UI/UpdateLog/UpdateLog.cs.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: cb95e6d895e1415aaa14fa6be814eb27 +timeCreated: 1752802640 \ No newline at end of file