From b1b1e39f540aebc5b23cc3b8d28a63bd198e1436 Mon Sep 17 00:00:00 2001 From: rawer470 Date: Tue, 20 Aug 2024 01:23:33 +0300 Subject: [PATCH] StartMultiplayerGame2 --- ZoFo/GameCore/GUI/WaitingForPlayersGUI.cs | 2 +- .../GameManagers/NetworkManager/ServerNetworkManager.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ZoFo/GameCore/GUI/WaitingForPlayersGUI.cs b/ZoFo/GameCore/GUI/WaitingForPlayersGUI.cs index c7d8c35..94476ba 100644 --- a/ZoFo/GameCore/GUI/WaitingForPlayersGUI.cs +++ b/ZoFo/GameCore/GUI/WaitingForPlayersGUI.cs @@ -53,7 +53,7 @@ public class WaitingForPlayersGUI : AbstractGUI { // start AppManager.Instance.ChangeState(GameState.HostPlaying); - AppManager.Instance.SetGUI(new HUD()); + AppManager.Instance.SetGUI(new HUD());//// AppManager.Instance.server.StartGame(); // ваш код здесь }; diff --git a/ZoFo/GameCore/GameManagers/NetworkManager/ServerNetworkManager.cs b/ZoFo/GameCore/GameManagers/NetworkManager/ServerNetworkManager.cs index 1e38eb5..8035e6c 100644 --- a/ZoFo/GameCore/GameManagers/NetworkManager/ServerNetworkManager.cs +++ b/ZoFo/GameCore/GameManagers/NetworkManager/ServerNetworkManager.cs @@ -43,7 +43,6 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager private void Init() { endPoint = new IPEndPoint(GetIp(), 8080); - sendedData = new List(); socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); clientsEP = new List(); commonUpdates = new List();