From 731ca32f5bdf7aca8890ac5b263eda8604d34952 Mon Sep 17 00:00:00 2001 From: xiejun <467745540@qq.com> Date: Mon, 4 Sep 2023 15:40:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Battle/View/Unit/EnemyView.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua index 2edc9ddace..cb92d47f11 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/EnemyView.lua @@ -125,7 +125,11 @@ function EnemyView:onCreate(go, role, position, root, isBoss,enemyId) self.RoleSkillLiveGoTran2 = self.RoleSkillLiveGo2:GetComponent("RectTransform") self.RoleSkillLiveGoTran2:SetParent(self.RoleLiveGO.transform) -- self.RoleSkillLiveGoTran2.anchoredPosition = Vector2.New(self.outOffset[1], self.outOffset[2])-- * 0.5 + if combat2.CloseRangeHitOffset~=nil then self.RoleSkillLiveGoTran2.localPosition = Vector2.New(combat2.CloseRangeHitOffset[1], combat2.CloseRangeHitOffset[2])-- * 0.5 + else + self.RoleSkillLiveGoTran2.localPosition = Vector2.New(0, 0)-- * 0.5 + end self.RoleSkillLiveGoTran2.localScale = Vector3.one self.RoleSkillLiveGoTran2.sizeDelta = Vector2.New(1000, 1000)