神将不能拖动修改
parent
516ddb44ae
commit
9276097bf4
|
|
@ -404,6 +404,12 @@ function HeroLikeAbilityPanel:RightBtnOnClick()
|
|||
self.rightLiveObj = HeroManager.LoadHerolive1(rightHeroData,self.rightObj)
|
||||
local SkeletonGraphic = self.curLiveObj:GetComponent("SkeletonGraphic")
|
||||
SkeletonGraphic.AnimationState:SetAnimation(0, "touch", false)
|
||||
if self.curLiveObj then
|
||||
self.dragView.gameObject:SetActive(true)
|
||||
self.dragView:SetDragGO(self.curLiveObj)
|
||||
else
|
||||
self.dragView.gameObject:SetActive(false)
|
||||
end
|
||||
self:UpdateHeroInfoData()
|
||||
self.isRightOrLeft = true
|
||||
end):SetEase(Ease.Linear)
|
||||
|
|
@ -446,6 +452,12 @@ function HeroLikeAbilityPanel:LeftBtnOnClick()
|
|||
self.leftLiveObj = HeroManager.LoadHerolive1(leftHeroData,self.leftObj)
|
||||
local SkeletonGraphic = self.curLiveObj:GetComponent("SkeletonGraphic")
|
||||
SkeletonGraphic.AnimationState:SetAnimation(0, "touch", false)
|
||||
if self.curLiveObj then
|
||||
self.dragView.gameObject:SetActive(true)
|
||||
self.dragView:SetDragGO(self.curLiveObj)
|
||||
else
|
||||
self.dragView.gameObject:SetActive(false)
|
||||
end
|
||||
self:UpdateHeroInfoData()
|
||||
self.isRightOrLeft = true
|
||||
end):SetEase(Ease.Linear)
|
||||
|
|
|
|||
Loading…
Reference in New Issue