添加点击神将的互动

dev_chengFeng
jiaoyangna 2021-09-27 21:39:43 +08:00
parent 6de82cb731
commit ba7421ffa7
1 changed files with 5 additions and 0 deletions

View File

@ -169,6 +169,11 @@ function HeroLikeAbilityPanel:RequestDonate(num)
end
function HeroLikeAbilityPanel:BindEvent()
Util.AddClick(self.dragView.gameObject, function()
local SkeletonGraphic = self.curLiveObj:GetComponent("SkeletonGraphic")
SkeletonGraphic.AnimationState:SetAnimation(0, "touch", false)
end)
Util.AddClick(self.btnBack, function()
self:ClosePanel()
end)