From a590e57c8987a6fc78e97ac20ddb3b9cd37ebe3f Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Thu, 28 Oct 2021 17:28:10 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=B8=89=E7=95=8C=E9=99=8D=E9=AD=94?= =?UTF-8?q?=E3=80=91=E5=9D=90=E9=AA=91=E6=98=BE=E7=A4=BA=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/DemonSlayer/DemonSlayerNewPanel.lua | 3 ++- .../~Lua/Modules/DemonSlayer/DemonSlayerPanel.lua | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/DemonSlayer/DemonSlayerNewPanel.lua b/Assets/ManagedResources/~Lua/Modules/DemonSlayer/DemonSlayerNewPanel.lua index c4898241d2..225e9ca9cc 100644 --- a/Assets/ManagedResources/~Lua/Modules/DemonSlayer/DemonSlayerNewPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/DemonSlayer/DemonSlayerNewPanel.lua @@ -110,7 +110,8 @@ function DemonSlayerNewPanel:SetPlayer() designation = allRankData[i].userTitle } npcList[i] = PlayerLiveView:New(livePrefab.transform,2, curPlayerLiveViewData) - if curPlayerLiveViewData.userMount and curPlayerLiveViewData.userMount > 0 and curPlayerLiveViewData.userMount ~= PlayerRide.YUJIAN then + LogGreen("curPlayerLiveViewData.userMount:"..tostring(curPlayerLiveViewData.userMount)) + if curPlayerLiveViewData.ride and curPlayerLiveViewData.ride > 0 and curPlayerLiveViewData.ride ~= PlayerRide.YUJIAN then npcList[i]:OnOpen(GetPlayerRoleSingleConFig().Scale11,Vector3.New(0,-102.73,0),WALK_DIR.IDLE_LEFT) else npcList[i]:OnOpen(GetPlayerRoleSingleConFig().Scale11,Vector3.New(0,-102.73,0),WALK_DIR.IDLE_FRONT) diff --git a/Assets/ManagedResources/~Lua/Modules/DemonSlayer/DemonSlayerPanel.lua b/Assets/ManagedResources/~Lua/Modules/DemonSlayer/DemonSlayerPanel.lua index b85a1f4fe4..e56d994af7 100644 --- a/Assets/ManagedResources/~Lua/Modules/DemonSlayer/DemonSlayerPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/DemonSlayer/DemonSlayerPanel.lua @@ -132,7 +132,7 @@ function DemonSlayerPanel:SetRank(ActInfo) } npcList[i] = PlayerLiveView:New(livePrefab.transform,2, curPlayerLiveViewData) - if curPlayerLiveViewData.userMount and curPlayerLiveViewData.userMount > 0 and curPlayerLiveViewData.userMount ~= PlayerRide.YUJIAN then + if curPlayerLiveViewData.ride and curPlayerLiveViewData.ride > 0 and curPlayerLiveViewData.ride ~= PlayerRide.YUJIAN then npcList[i]:OnOpen(GetPlayerRoleSingleConFig().Scale11,Vector3.New(0,-102.73,0),WALK_DIR.IDLE_LEFT) else npcList[i]:OnOpen(GetPlayerRoleSingleConFig().Scale11,Vector3.New(0,-102.73,0),WALK_DIR.IDLE_FRONT)