Update
This commit is contained in:
@@ -119,7 +119,11 @@ namespace OnlyScove.Scripts
|
||||
|
||||
public void OnCancel(InputAction.CallbackContext context)
|
||||
{
|
||||
if (context.performed) OnCancelEvent?.Invoke();
|
||||
if (context.performed)
|
||||
{
|
||||
Debug.Log("[InputReader] Cancel Action Performed (ESC)!");
|
||||
OnCancelEvent?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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