修改BUG
parent
65d783dae1
commit
9d3234a34b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue