Update
This commit is contained in:
@@ -39,7 +39,9 @@ namespace Hallucinate.UI
|
||||
_logo.RegisterCallback<ClickEvent>(OnLogoClicked);
|
||||
|
||||
// Bind Buttons
|
||||
root.Q<Button>("SettingsBtn").clicked += () => uiManager.Push<SettingsController>();
|
||||
var settingsBtn = root.Q<Button>("SettingsBtn");
|
||||
if (settingsBtn != null) settingsBtn.clicked += () => uiManager.ToggleSettings();
|
||||
|
||||
root.Q<Button>("JoinBtn").clicked += () => uiManager.Push<LobbyController>();
|
||||
root.Q<Button>("CreateBtn").clicked += () => uiManager.Push<LobbyController>();
|
||||
root.Q<Button>("ProfileBtn").clicked += () => uiManager.Push<ProfileController>();
|
||||
|
||||
Reference in New Issue
Block a user