From 3993a248c0e926f9b7c5e1a05f07cf18b905b693 Mon Sep 17 00:00:00 2001 From: xiejun <467745540@qq.com> Date: Mon, 4 Sep 2023 15:21:09 +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/PlayerView.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua index 0a6dd17617..e0a8076801 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/Unit/PlayerView.lua @@ -178,8 +178,11 @@ function PlayerView:onCreate(go, role, position, root) 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 self.combat2.CloseRangeHitOffset~=nil then self.RoleSkillLiveGoTran2.localPosition = Vector2.New(self.combat2.CloseRangeHitOffset[1], self.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) self.RoleSkillLiveGoGraphic2 = self.RoleSkillLiveGo2:GetComponent("SkeletonGraphic")