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()); }