StartMultiplayerGame
This commit is contained in:
parent
68ab2a4498
commit
bed68922a9
2 changed files with 3 additions and 1 deletions
|
@ -53,6 +53,8 @@ public class WaitingForPlayersGUI : AbstractGUI
|
||||||
{
|
{
|
||||||
// start
|
// start
|
||||||
AppManager.Instance.ChangeState(GameState.HostPlaying);
|
AppManager.Instance.ChangeState(GameState.HostPlaying);
|
||||||
|
AppManager.Instance.SetGUI(new HUD());
|
||||||
|
AppManager.Instance.server.StartGame();
|
||||||
// ваш код здесь
|
// ваш код здесь
|
||||||
};
|
};
|
||||||
Elements.Add(startButton);
|
Elements.Add(startButton);
|
||||||
|
|
|
@ -140,7 +140,7 @@ namespace ZoFo.GameCore
|
||||||
networkManager.AddData(gameEnded);
|
networkManager.AddData(gameEnded);
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<GameObject> gameObjects;
|
public List<GameObject> gameObjects = new List<GameObject>();
|
||||||
public List<Entity> entities; //entity
|
public List<Entity> entities; //entity
|
||||||
public List<Player> players;
|
public List<Player> players;
|
||||||
public void Update(GameTime gameTime)
|
public void Update(GameTime gameTime)
|
||||||
|
|
Loading…
Add table
Reference in a new issue