From e33e9388033da1fa1feb8395dc61cecc12b1a8c4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-SAJ6RKV\\Administrator" Date: Wed, 18 Jun 2025 15:54:50 +0800 Subject: [PATCH] 1 --- .../Assets/GameScripts/HotFix/GameLogic/UI/UIHDWmsp.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIHDWmsp.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIHDWmsp.cs index 1cbc5e70..b85b5297 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIHDWmsp.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIHDWmsp.cs @@ -1,5 +1,7 @@ using System.Collections; using System.Collections.Generic; +using System.Threading.Tasks; +using Cysharp.Threading.Tasks; using TMPro; using UnityEngine; using UnityEngine.UI; @@ -14,11 +16,16 @@ namespace GameLogic public RawImage m_HeadIcon; - public void OnInit(string teamName, string playerName, string imgUrl) + public async Task OnInit(string teamName, string playerName, string imgUrl) + { m_teamName.text = teamName; m_PlayerName.text = playerName; AsyncImageDownload.Instance.SetAsyncImage(imgUrl, m_HeadIcon); + + + await UniTask.Delay(2000); + Destroy(gameObject); } }