From 89fa96e505af9fe7baf676591222bfdb23b48262 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 20 十一月 2025 22:38:09 +0800
Subject: [PATCH] 0312 排行榜 坐骑同步武将形象
---
Main/System/Horse/HorseController.cs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/Main/System/Horse/HorseController.cs b/Main/System/Horse/HorseController.cs
index e26a83d..fa80444 100644
--- a/Main/System/Horse/HorseController.cs
+++ b/Main/System/Horse/HorseController.cs
@@ -23,6 +23,7 @@
{
if (skinID == _skinID)
{
+ CreateHero(_heroSkinID);
//閬垮厤閲嶅鍒涘缓
return;
}
@@ -81,7 +82,15 @@
public void CreateHero(int heroSkinID)
{
+ if (instanceGO == null)
+ {
+ return;
+ }
hero = instanceGO.GetComponentInChildren<UIHeroController>(true);
+ if (hero == null)
+ {
+ return;
+ }
if (heroSkinID == 0)
{
hero.SetActive(false);
--
Gitblit v1.8.0