From 9d3234a34b24219f0dfbfc61b8dcf516abac46ed Mon Sep 17 00:00:00 2001 From: xiejun <467745540@qq.com> Date: Fri, 18 Aug 2023 21:40:29 +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/HandBook/HandBookHeroInfoPanel.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua index f3293014ff..5040e2ed30 100644 --- a/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/HandBook/HandBookHeroInfoPanel.lua @@ -182,7 +182,7 @@ function HandBookHeroInfoPanel:RefreshHeroLive() this.rightLiveObj = self:LoadHerolive(rightHeroData,self.rightObj) this.curLiveObj = self:LoadHerolive(heroConFigData,self.curObj) if this.curLiveObj then - self.dragView.gameObject:SetActive(true) + self.dragView.gameObject:SetActive(false) self.dragView:SetDragGO(this.curLiveObj) else self.dragView.gameObject:SetActive(false) @@ -432,7 +432,7 @@ end function HandBookHeroInfoPanel:SetDragView() if this.curLiveObj then - this.dragView.gameObject:SetActive(true) + this.dragView.gameObject:SetActive(false) this.dragView:SetDragGO(this.curLiveObj) else this.dragView.gameObject:SetActive(false) @@ -503,7 +503,7 @@ function HandBookHeroInfoPanel:RightBtnOnClick() this.curLiveObj = this.rightLiveObj this.rightLiveObj = this:LoadHerolive(rightHeroData,self.rightObj) local SkeletonGraphic = this.curLiveObj:GetComponent("SkeletonGraphic") - SkeletonGraphic.AnimationState:SetAnimation(0, "touch", false) + SkeletonGraphic.AnimationState:SetAnimation(0, "idle", false) this.rightBtn:GetComponent("Button").enabled = true isClickLeftOrRightBtn = true this:UpdateHeroInfoData() @@ -548,7 +548,7 @@ function HandBookHeroInfoPanel:LeftBtnOnClick() this.curLiveObj = this.leftLiveObj this.leftLiveObj = this:LoadHerolive(leftHeroData,self.leftObj) local SkeletonGraphic = this.curLiveObj:GetComponent("SkeletonGraphic") - SkeletonGraphic.AnimationState:SetAnimation(0, "touch", false) + SkeletonGraphic.AnimationState:SetAnimation(0, "idle", false) this.leftBtn:GetComponent("Button").enabled = true isClickLeftOrRightBtn = true this:UpdateHeroInfoData()