From efec4175446095c1727c162a4e72e5b1a6c2be35 Mon Sep 17 00:00:00 2001 From: BowmanChow Date: Fri, 24 Apr 2020 02:12:51 +0800 Subject: [PATCH] =?UTF-8?q?Client=E6=94=B6=E5=88=B0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E7=9A=84=E6=B6=88=E6=81=AF=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E8=87=B4=E4=BA=8E=E9=80=80=E5=87=BA=EF=BC=8C=E8=80=8C=E6=98=AF?= =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E8=BF=90=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logic/Logic.Client/Client.cs | 4 ++-- runAgent.bat | 2 +- runServer.bat | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/logic/Logic.Client/Client.cs b/logic/Logic.Client/Client.cs index 5c78dc7..78ab6f0 100644 --- a/logic/Logic.Client/Client.cs +++ b/logic/Logic.Client/Client.cs @@ -411,8 +411,8 @@ public void OnReceive(IMessage message) messageToServer.ID = this.id; } - this.Position = new XYPosition(msg.GameObjectList[this.id].PositionX, msg.GameObjectList[this.id].PositionY); - this._facingDirection = (THUnity2D.Direction)msg.GameObjectList[this.id].Direction; + //this.Position = new XYPosition(msg.GameObjectList[this.id].PositionX, msg.GameObjectList[this.id].PositionY); + //this._facingDirection = (THUnity2D.Direction)msg.GameObjectList[this.id].Direction; ChangeAllLabels(msg); lastRecieveMessage = msg; diff --git a/runAgent.bat b/runAgent.bat index c0d044e..2ac41aa 100644 --- a/runAgent.bat +++ b/runAgent.bat @@ -1 +1 @@ -communication\Agent\bin\Release\netcoreapp3.0\Communication.Agent.exe --server 127.0.0.1:20000 --port 30000 --debugLevel 0 --playercount 1 --timelimit 25 \ No newline at end of file +communication\Agent\bin\Release\netcoreapp3.0\Communication.Agent.exe --server 127.0.0.1:20000 --port 30000 --debugLevel 0 --playercount 2 --timelimit 25 \ No newline at end of file diff --git a/runServer.bat b/runServer.bat index 57e95d7..2a35ba8 100644 --- a/runServer.bat +++ b/runServer.bat @@ -1 +1 @@ -logic\Logic.Server\bin\Release\netcoreapp3.0\Logic.Server.exe --port 20000 --debugLevel 1 --playerCount 1 --agentCount 2 --gameTime 600 \ No newline at end of file +logic\Logic.Server\bin\Release\netcoreapp3.0\Logic.Server.exe --port 20000 --debugLevel 1 --playerCount 2 --agentCount 4 --gameTime 600 \ No newline at end of file