LobbyGui Network Fix
This commit is contained in:
parent
abbcdba429
commit
e275e5cddc
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,7 @@ namespace DangerousD.GameCore.GUI
|
||||||
fontName = "font2"
|
fontName = "font2"
|
||||||
};
|
};
|
||||||
hostButton.LeftButtonPressed += () => {
|
hostButton.LeftButtonPressed += () => {
|
||||||
|
AppManager.Instance.ChangeGameState(GameState.Game);
|
||||||
AppManager.Instance.NetworkManager.HostInit(AppManager.Instance.IpAddress);
|
AppManager.Instance.NetworkManager.HostInit(AppManager.Instance.IpAddress);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -106,6 +106,7 @@ namespace DangerousD.GameCore.GUI
|
||||||
fontName = "font2"
|
fontName = "font2"
|
||||||
};
|
};
|
||||||
joinSelectedButton.LeftButtonPressed += () => {
|
joinSelectedButton.LeftButtonPressed += () => {
|
||||||
|
AppManager.Instance.ChangeGameState(GameState.Game);
|
||||||
AppManager.Instance.NetworkManager.ClientInit(AppManager.Instance.IpAddress);
|
AppManager.Instance.NetworkManager.ClientInit(AppManager.Instance.IpAddress);
|
||||||
};
|
};
|
||||||
Button joinByIpButton = new ButtonText(Manager)
|
Button joinByIpButton = new ButtonText(Manager)
|
||||||
|
|
Loading…
Add table
Reference in a new issue