【寻宝迷踪】修改提交

dev_chengFeng
ZhangBiao 2021-09-16 13:25:15 +08:00
parent d49d73dcb5
commit 31304cc252
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -48,6 +48,7 @@ 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 ()
@ -86,6 +87,7 @@ 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()
@ -214,7 +216,7 @@ function XunBaoMiZongMap:SetRoleWalk(_targetPos,_fuv)
cantWalk = true
self:DoCheckDistance()
self.timeCount = self.timeCount + 1
if self.timeCount%20 == 0 then
if self.timeCount%10 == 0 then
SoundManager.PlaySound("Footsteps_Run_07",false)
end
end):OnComplete(function ()