修改BUG

onepiece_demo_arena
xiejun 2023-09-04 15:40:11 +08:00
parent 3993a248c0
commit 731ca32f5b
1 changed files with 4 additions and 0 deletions

View File

@ -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)