From 0fa617a09eedf6bdb25eda55fac1d3344859fd93 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 31 三月 2026 19:46:31 +0800
Subject: [PATCH] webgl
---
Main/System/HeroDebut/HeroDebutManager.cs | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/Main/System/HeroDebut/HeroDebutManager.cs b/Main/System/HeroDebut/HeroDebutManager.cs
index d966740..dd02e5e 100644
--- a/Main/System/HeroDebut/HeroDebutManager.cs
+++ b/Main/System/HeroDebut/HeroDebutManager.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using Cysharp.Threading.Tasks;
using LitJson;
using UnityEngine;
@@ -159,14 +160,7 @@
public void SetHeroSquareIcon(ImageEx image, string name)
{
- var sprite = UILoader.LoadSprite("HeroHead", name);
- if (sprite != null)
- {
- image.overrideSprite = sprite;
- return;
- }
-
- image.SetSprite("herohead_default");
+ UILoader.LoadSprite("HeroHead", name, image, "herohead_default").Forget();
}
public void GetActTimeStr(TextEx timeText, string key = "TimeRush05")
--
Gitblit v1.8.0