森罗 进图后2.5秒才能开始移动,避免服务器小差
parent
6c4dab9fbb
commit
456ab0aa92
|
@ -247,8 +247,11 @@ end
|
||||||
|
|
||||||
function this.InitCarbonSet()
|
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
|
local isStartMap = MapManager.curMapId == 100
|
||||||
this.BtnBack:SetActive(not isStartMap)
|
this.BtnBack:SetActive(not isStartMap)
|
||||||
|
@ -286,7 +289,7 @@ function this.SetRoleShow(scale, pos)
|
||||||
DG.Tweening.Core.DOSetter_float(TileMapController.SetScale),
|
DG.Tweening.Core.DOSetter_float(TileMapController.SetScale),
|
||||||
scale, 1):SetEase(Ease.Linear):OnComplete(function ()
|
scale, 1):SetEase(Ease.Linear):OnComplete(function ()
|
||||||
|
|
||||||
this.Mask:SetActive(false)
|
-- this.Mask:SetActive(false)
|
||||||
playerView.Init(pos)
|
playerView.Init(pos)
|
||||||
|
|
||||||
-- 进图初始化完成
|
-- 进图初始化完成
|
||||||
|
|
Loading…
Reference in New Issue