From 1c137cc91142b7565fec356011f1ede1f4ed0d46 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Mon, 18 Oct 2021 16:18:59 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AF=BB=E5=AE=9D=E8=BF=B7=E8=B8=AA?= =?UTF-8?q?=E3=80=91=E9=AA=91=E7=9D=80=E5=9D=90=E9=AA=91=E5=AF=BB=E5=AE=9D?= =?UTF-8?q?=EF=BC=8C=E7=89=B9=E6=95=88=E6=98=BE=E7=A4=BA=E5=88=86=E5=89=B2?= =?UTF-8?q?=E7=BA=BF=EF=BC=8C=E9=9C=80=E8=A6=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/XunBaoMiZong/XunBaoMiZongMapPanel.lua | 2 +- Assets/ManagedResources/~Lua/View/PlayerLiveView.lua | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/XunBaoMiZong/XunBaoMiZongMapPanel.lua b/Assets/ManagedResources/~Lua/Modules/XunBaoMiZong/XunBaoMiZongMapPanel.lua index 162019ef1d..4956710852 100644 --- a/Assets/ManagedResources/~Lua/Modules/XunBaoMiZong/XunBaoMiZongMapPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/XunBaoMiZong/XunBaoMiZongMapPanel.lua @@ -90,7 +90,7 @@ function XunBaoMiZongMap:OnShow() self.btnBack.gameObject:GetComponent("Button").interactable = true self.btnGet.sprite = self.spLoader:LoadSprite("x_xbmz_xunbaoanniu01") self.effectBtnGet:SetActive(false) - self.liveNode = PlayerLiveView:New(self.roleRoot,1) + self.liveNode = PlayerLiveView:New(self.roleRoot,1,nil,nil,nil,true) self.liveNode:OnOpen(300,Vector3.zero,WALK_DIR.IDLE_FRONT) self.liveNode:SetTitleHide() self:LoadMapData() diff --git a/Assets/ManagedResources/~Lua/View/PlayerLiveView.lua b/Assets/ManagedResources/~Lua/View/PlayerLiveView.lua index 5cf438632d..65083f2e65 100644 --- a/Assets/ManagedResources/~Lua/View/PlayerLiveView.lua +++ b/Assets/ManagedResources/~Lua/View/PlayerLiveView.lua @@ -8,7 +8,7 @@ local settingValue = ServerConfigManager.GetSettingValue(ServerConfigManager.Set -- designation = 80010 -- } -function PlayerLiveView:New(gameObject,_Type, PlayerLiveViewData,orginLayer,posType) +function PlayerLiveView:New(gameObject,_Type, PlayerLiveViewData,orginLayer,posType,_hideRide) -- Type = _Type -- local b = {} -- b.gameObject = gameObject @@ -29,6 +29,11 @@ function PlayerLiveView:New(gameObject,_Type, PlayerLiveViewData,orginLayer,posT designation = PlayerManager.GetPlayerDesignation() } end + LogRed("instance.PlayerLiveViewData.ride:"..tostring(instance.PlayerLiveViewData.ride)..tostring(_hideRide)) + if _hideRide then + instance.PlayerLiveViewData.ride = nil + end + LogRed("instance.PlayerLiveViewData.ride:"..tostring(instance.PlayerLiveViewData.ride)) instance.orginLayer = orginLayer instance.transform = gameObject.transform instance.leader:SetActive(true)