From 1bf0726b8ded5f82226f84b4e39b2fd87c08770f Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 14 一月 2026 20:32:29 +0800
Subject: [PATCH] 287 【公会】BOSS讨伐
---
Main/System/Horse/HorseController.cs | 9 +++++----
Main/System/Guild/GuildBossWin.cs | 2 +-
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Main/System/Guild/GuildBossWin.cs b/Main/System/Guild/GuildBossWin.cs
index 30b63ba..ee91432 100644
--- a/Main/System/Guild/GuildBossWin.cs
+++ b/Main/System/Guild/GuildBossWin.cs
@@ -494,7 +494,7 @@
void InitAttack()
{
- var skinConfig = HorseSkinConfig.Get(HorseManager.Instance.GetUsingHorseSkinID(true));
+ var skinConfig = HorseSkinConfig.Get(HorseManager.Instance.GetUsingHorseSkinID(false));
heroModel.Create(skinConfig.SkinID, PhantasmPavilionManager.Instance.GetMyModelSkinID(), 1.2f);
for (int i = 0; i < hurtValues.Length; i++)
{
diff --git a/Main/System/Horse/HorseController.cs b/Main/System/Horse/HorseController.cs
index c53de2c..a805522 100644
--- a/Main/System/Horse/HorseController.cs
+++ b/Main/System/Horse/HorseController.cs
@@ -19,6 +19,7 @@
private bool isHeroShowBefore = false;
+ // 鍒涘缓鍧愰獞 锛歩d涓�0绌哄潗楠戜篃鏈夐厤缃�
public void Create(int _skinID, int _heroSkinID = 0, float scale = 1f, Action _onComplete = null, string motionName = "idle")
{
pool = GameObjectPoolManager.Instance.GetPool(UILoader.LoadPrefab("UIHorse"));
@@ -38,9 +39,9 @@
if (skinID == _skinID)
{
if (skinID == 0)
- {
+ {
skeletonGraphic.enabled = false;
- }
+ }
CreateHero(_heroSkinID, scale);
//閬垮厤閲嶅鍒涘缓
return;
@@ -58,7 +59,7 @@
transform.SetActive(true);
}
-
+
if (skinConfig == null || string.IsNullOrEmpty(skinConfig.Spine))
{
//鍗镐笅鍧愰獞鐨勬儏鍐�
@@ -66,7 +67,7 @@
spineAnimationState = null;
CreateHero(_heroSkinID, scale);
return;
- }
+ }
skeletonGraphic.skeletonDataAsset = ResManager.Instance.LoadAsset<SkeletonDataAsset>("UIEffect/Spine/Horse", skinConfig.Spine);
if (skeletonGraphic.skeletonDataAsset == null)
--
Gitblit v1.8.0