From 8f983d0dab26becb6b85dbbb616fde21c3ad8f02 Mon Sep 17 00:00:00 2001 From: yyl <yyl> Date: 星期三, 20 八月 2025 18:40:23 +0800 Subject: [PATCH] 125 【战斗】战斗系统 --- Main/System/Battle/BattleObject/BattleObjectFactory.cs | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/Main/System/Battle/BattleObject/BattleObjectFactory.cs b/Main/System/Battle/BattleObject/BattleObjectFactory.cs index 9bb60eb..2653acd 100644 --- a/Main/System/Battle/BattleObject/BattleObjectFactory.cs +++ b/Main/System/Battle/BattleObject/BattleObjectFactory.cs @@ -47,13 +47,13 @@ Debug.LogError("2 BattleObjectFactory.CreateBattleObject: Creating BattleObject for " + teamHero.ObjID + " at position " + teamHero.positionNum); - float finalScaleRate = modelScaleRate * teamHero.modelScale; skeletonGraphic.skeletonDataAsset = skeletonDataAsset; skeletonGraphic.Initialize(true); realGO.name = battleObject.ObjID.ToString(); realGO.transform.localScale = new Vector3(finalScaleRate, finalScaleRate, finalScaleRate); + (realGO.transform as RectTransform).anchoredPosition = Vector2.zero; battleObject.Init(realGO, teamHero, _Camp); Debug.LogError(realGO.name + " /3 BattleObjectFactory.CreateBattleObject: Creating BattleObject for " + teamHero.ObjID + " at position " + teamHero.positionNum); @@ -64,6 +64,7 @@ public static void DestroyBattleObject(int key, BattleObject battleObj) { + Debug.LogError("BattleObject destroy"); battleObj.Destroy(); battleObj = null; } -- Gitblit v1.8.0