From ca64b708ac212bc3df65777ed7449725666d66ba Mon Sep 17 00:00:00 2001 From: "DESKTOP-5RP3AKU\\Jisol" <2858626794@qq.com> Date: Sun, 22 Sep 2024 04:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Scripts/AppGame/Sync/Tile/JNGTileClientSystem.cs | 2 +- .../Entity/Nodes/Component/Controller/EDPlayerController.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/JNFrame2/Assets/Scripts/AppGame/Sync/Tile/JNGTileClientSystem.cs b/JNFrame2/Assets/Scripts/AppGame/Sync/Tile/JNGTileClientSystem.cs index 0a514f00..32a62db4 100644 --- a/JNFrame2/Assets/Scripts/AppGame/Sync/Tile/JNGTileClientSystem.cs +++ b/JNFrame2/Assets/Scripts/AppGame/Sync/Tile/JNGTileClientSystem.cs @@ -100,7 +100,7 @@ namespace AppGame.Sync //发送帧数据给服务端 JNStateTileInputs tileInputs = new JNStateTileInputs() { - TId = 0, + TId = PlayerTile ?? (Sockets.Keys.Count > 0 ? Sockets.Keys.Last() : 0), Message = inputs }; App.Client.Send((int)NActionEnum.NSyncTileInput,tileInputs); diff --git a/JNFrame2/Assets/Scripts/Game/Logic/Entity/Nodes/Component/Controller/EDPlayerController.cs b/JNFrame2/Assets/Scripts/Game/Logic/Entity/Nodes/Component/Controller/EDPlayerController.cs index 4904bdff..b5cdd437 100644 --- a/JNFrame2/Assets/Scripts/Game/Logic/Entity/Nodes/Component/Controller/EDPlayerController.cs +++ b/JNFrame2/Assets/Scripts/Game/Logic/Entity/Nodes/Component/Controller/EDPlayerController.cs @@ -51,7 +51,6 @@ namespace Game.JNGFrame.Logic.Entity.Controller { if (Input.SInput(Auth) is not IDPlayer input || input.MoveVector is null) return; - Debug.Log($"收到移动数据: ${input.MoveVector.ToLVector2()}"); Move.Vector(input.MoveVector.ToLVector2()); }