【优化】修复界面销毁后计时器报错
parent
fe996d3e54
commit
41fbecb79a
|
@ -147,6 +147,9 @@ function this.SetRoleWalk(middleFightId)
|
|||
-- this.liveNode = PlayerLiveView:New(Util.GetGameObject(rootParent, "mapParent/selectMap/Image (1)/roleRoot"),1)
|
||||
-- this.liveNode:OnOpen(GetPlayerRoleSingleConFig().Scale5,Vector3.New(0,40,0),WALK_DIR.IDLE_FRONT)
|
||||
-- end
|
||||
if not this.liveNode then
|
||||
return
|
||||
end
|
||||
this.liveNode.leader.transform:DOLocalMove(targetPos, speed / 5, false):OnStart(function ()
|
||||
this.SetRoleDirAction(targetPos.x, targetPos.y, pos.x, pos.y)
|
||||
end):OnUpdate(function() --TODO:测试速度
|
||||
|
@ -246,6 +249,7 @@ end
|
|||
function this:Dispose()
|
||||
if this.liveNode then
|
||||
this.liveNode:OnClose()
|
||||
this.liveNode = nil
|
||||
end
|
||||
UIManager.camera.clearFlags = CameraClearFlags.Skybox
|
||||
TileMapView.Exit()
|
||||
|
|
Loading…
Reference in New Issue