From 2962c143fcde078b47a13684d02846a276a77be5 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 19 十二月 2025 17:35:12 +0800
Subject: [PATCH] 0312 排名上的 模型大小,第一名原大小,2-3名80%
---
Main/System/Horse/HorseController.cs | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Main/System/Horse/HorseController.cs b/Main/System/Horse/HorseController.cs
index cdbb27f..0b527cd 100644
--- a/Main/System/Horse/HorseController.cs
+++ b/Main/System/Horse/HorseController.cs
@@ -41,7 +41,7 @@
{
skeletonGraphic.enabled = false;
}
- CreateHero(_heroSkinID);
+ CreateHero(_heroSkinID, scale);
//閬垮厤閲嶅鍒涘缓
return;
}
@@ -64,7 +64,7 @@
//鍗镐笅鍧愰獞鐨勬儏鍐�
skeletonGraphic.enabled = false;
spineAnimationState = null;
- CreateHero(_heroSkinID);
+ CreateHero(_heroSkinID, scale);
return;
}
@@ -90,12 +90,12 @@
if (motionName == "")
motionName = GetFistSpineAnim();
PlayAnimation(motionName, true);
- CreateHero(_heroSkinID);
+ CreateHero(_heroSkinID, scale);
spineAnimationState.Complete -= OnAnimationComplete;
spineAnimationState.Complete += OnAnimationComplete;
}
- public void CreateHero(int heroSkinID)
+ public void CreateHero(int heroSkinID, float _scale)
{
if (instanceGO == null)
{
@@ -120,7 +120,7 @@
return;
}
hero.SetActive(true);
- hero.Create(heroSkinID);
+ hero.Create(heroSkinID, _scale);
// 纭繚 BoneFollowerGraphic 寮曠敤鍒版纭殑鍧愰獞 SkeletonGraphic
var boneFollower = hero.GetComponent<BoneFollowerGraphic>();
--
Gitblit v1.8.0