【降妖夺宝】修复协程导致报错

dev_chengFeng
gaoxin 2021-06-21 14:12:33 +08:00
parent 057e32fe52
commit 3f320f1e89
1 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,9 @@ function XiangYaoDuoBao:BindEvent()
self.btn:SetActive(false)
coroutine.wait(2.5)
RoleLiveGOGraphic.AnimationState:SetAnimation(0, "idle", true)
self.btn:SetActive(true)
if self.btn then
self.btn:SetActive(true)
end
end)
end)
end
@ -368,6 +370,7 @@ function XiangYaoDuoBao:OnDestroy()
poolManager:UnLoadLive(bgName, Live)
end
Live = nil
self.btn = nil
end
--添加事件监听(用于子类重写)