Update - 1.7.0.88
EN: 1.7.0.88 CN: 1.7.0.90 JP: 1.7.0.91 KR: 1.7.0.94
This commit is contained in:
@@ -18,27 +18,40 @@ function PenguinBaseCardCtrl:RefreshIcon(bOpen)
|
||||
self._mapNode.imgBg:SetActive(not bOpen)
|
||||
self._mapNode.imgIcon.gameObject:SetActive(bOpen)
|
||||
end
|
||||
function PenguinBaseCardCtrl:PlayInAni()
|
||||
self.animator:Play("PengUinCard_Base")
|
||||
end
|
||||
function PenguinBaseCardCtrl:PlayFlipAni()
|
||||
if self._mapNode.imgBg.activeSelf == false then
|
||||
return
|
||||
end
|
||||
self._mapNode.imgIcon.gameObject:SetActive(true)
|
||||
self.animator:Play("PengUinCard_Base_Turn", 0, 0)
|
||||
WwiseManger:PostEvent("Mode_Card_trunover")
|
||||
self.animator.speed = self._panel.mapLevel.nSpeed
|
||||
local nAnimTime = NovaAPI.GetAnimClipLength(self.animator, {
|
||||
"PengUinCard_Base_Turn"
|
||||
})
|
||||
nAnimTime = nAnimTime / self._panel.mapLevel.nSpeed
|
||||
self:AddTimer(1, nAnimTime, function()
|
||||
self._mapNode.imgBg:SetActive(false)
|
||||
end, true, true, true)
|
||||
end
|
||||
function PenguinBaseCardCtrl:PlayReplaceAni()
|
||||
self.animator:Play("PengUinCard_Base_Double", 0, 0)
|
||||
self.animator.speed = self._panel.mapLevel.nSpeed
|
||||
end
|
||||
function PenguinBaseCardCtrl:PlayTriggerAni(pos)
|
||||
if table.indexof(self._panel.mapLevel.tbHandRank, self.nSuit) == 0 then
|
||||
return
|
||||
end
|
||||
self.animator:Play("PengUinCard_Base_Open", 0, 0)
|
||||
WwiseManger:PostEvent("Mode_Card_cast")
|
||||
self.animator.speed = self._panel.mapLevel.nSpeed
|
||||
end
|
||||
function PenguinBaseCardCtrl:PlayHideAni()
|
||||
self.animator:Play("PengUinCard_Base_Out", 0, 0)
|
||||
self.animator.speed = self._panel.mapLevel.nSpeed
|
||||
end
|
||||
function PenguinBaseCardCtrl:Awake()
|
||||
self.animator = self.gameObject:GetComponent("Animator")
|
||||
|
||||
Reference in New Issue
Block a user