森罗 进图后2.5秒才能开始移动,避免服务器小差

dev_chengFeng
ZhangBiao 2020-08-05 19:32:36 +08:00
parent 6c4dab9fbb
commit 456ab0aa92
1 changed files with 6 additions and 3 deletions

View File

@ -247,8 +247,11 @@ end
function this.InitCarbonSet()
-- 面板遮罩
this.Mask:SetActive(not MapManager.isOpen)
this.Mask:SetActive(true)
local timer = Timer.New(function()
this.Mask:SetActive(false)
end, 2.5)
timer:Start()
--如果是在序章
local isStartMap = MapManager.curMapId == 100
this.BtnBack:SetActive(not isStartMap)
@ -286,7 +289,7 @@ function this.SetRoleShow(scale, pos)
DG.Tweening.Core.DOSetter_float(TileMapController.SetScale),
scale, 1):SetEase(Ease.Linear):OnComplete(function ()
this.Mask:SetActive(false)
-- this.Mask:SetActive(false)
playerView.Init(pos)
-- 进图初始化完成