Revert "【寻宝迷踪】修改提交"

This reverts commit 31304cc252.
dev_chengFeng
ZhangBiao 2021-09-16 13:39:23 +08:00
parent 31304cc252
commit 95adcb6b1d
2 changed files with 2 additions and 4 deletions

View File

@ -62,7 +62,7 @@ end
function ActivityMainPanel:CheckActOpen(_index)
for i = 1, #tabs do
if tabs[i].Sort == tabs[_index].Sort then
if tabs[i].Sort == _index then
_index = i
end
end

View File

@ -48,7 +48,6 @@ function XunBaoMiZongMap:BindEvent()
self.effect:GetComponent("RectTransform").anchoredPosition3D = Vector3.New(self.rewardPos.x, self.rewardPos.y, 10)
self.effect:SetActive(true)
self.btnGet.gameObject:GetComponent("Button").interactable = false
self.btnBack.gameObject:GetComponent("Button").interactable = false
cantWalk = true
SoundManager.PlaySound("UI_021")
Timer.New(function ()
@ -87,7 +86,6 @@ function XunBaoMiZongMap:OnShow()
end
cantWalk = true
self.btnGet.gameObject:GetComponent("Button").interactable = true
self.btnBack.gameObject:GetComponent("Button").interactable = true
self.liveNode = PlayerLiveView:New(self.roleRoot,1)
self.liveNode:OnOpen(300,Vector3.zero,WALK_DIR.IDLE_FRONT)
self.liveNode:SetTitleHide()
@ -216,7 +214,7 @@ function XunBaoMiZongMap:SetRoleWalk(_targetPos,_fuv)
cantWalk = true
self:DoCheckDistance()
self.timeCount = self.timeCount + 1
if self.timeCount%10 == 0 then
if self.timeCount%20 == 0 then
SoundManager.PlaySound("Footsteps_Run_07",false)
end
end):OnComplete(function ()