StartMultiplayerGame2
This commit is contained in:
parent
115a9eed64
commit
b1b1e39f54
2 changed files with 1 additions and 2 deletions
|
@ -53,7 +53,7 @@ public class WaitingForPlayersGUI : AbstractGUI
|
||||||
{
|
{
|
||||||
// start
|
// start
|
||||||
AppManager.Instance.ChangeState(GameState.HostPlaying);
|
AppManager.Instance.ChangeState(GameState.HostPlaying);
|
||||||
AppManager.Instance.SetGUI(new HUD());
|
AppManager.Instance.SetGUI(new HUD());////
|
||||||
AppManager.Instance.server.StartGame();
|
AppManager.Instance.server.StartGame();
|
||||||
// ваш код здесь
|
// ваш код здесь
|
||||||
};
|
};
|
||||||
|
|
|
@ -43,7 +43,6 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager
|
||||||
private void Init()
|
private void Init()
|
||||||
{
|
{
|
||||||
endPoint = new IPEndPoint(GetIp(), 8080);
|
endPoint = new IPEndPoint(GetIp(), 8080);
|
||||||
sendedData = new List<Datagramm>();
|
|
||||||
socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
|
socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
|
||||||
clientsEP = new List<IPEndPoint>();
|
clientsEP = new List<IPEndPoint>();
|
||||||
commonUpdates = new List<UpdateData>();
|
commonUpdates = new List<UpdateData>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue