【逍遥游】掷骰子播放时需要加限制,不能点击关闭,或者直接显示结果

dev_chengFeng
jiaoyangna 2020-11-19 15:09:00 +08:00
parent d8f31bab35
commit 2c72089def
1 changed files with 3 additions and 0 deletions

View File

@ -145,6 +145,7 @@ function this:BindEvent()
this.isStartImage.sprite=Util.LoadSprite("x_xiaoyaoyou_tingzhi")
isAutoRun=true
end
this.btnBack:GetComponent("Button").enabled = false
XiaoYaoManager.StartXiaoYao()
end)
--开始游历
@ -270,6 +271,7 @@ function this.MoveTT(targetIndex,_data)
if isAutoRun then
if costNum>BagManager.GetItemCountById(UpViewRechargeType.YunYouVle) then
PopupTipPanel.ShowTip("云游值不足,休息一会吧!")
this.btnBack:GetComponent("Button").enabled = true
this.youliTag:SetActive(false)
this.isStart:SetActive(false)
this.startBtn:SetActive(true)
@ -288,6 +290,7 @@ function this.MoveTT(targetIndex,_data)
this.youliTag:SetActive(false)
this.isStart:SetActive(false)
this.startBtn:SetActive(true)
this.btnBack:GetComponent("Button").enabled = true
end
else
this.MoveTT(targetIndex,_data)