public void OnNavPress(bool isDown) { if (!isDown) { ButtonSound("Default"); switch (name) { case "MyLeaderboardTournamentsButton": TournamentManager.Instance.ShowTournamentPanel(PanelNames.MyLeaderboardPanel); break; case "NavFundsButton": TacoManager.ShowPanel(PanelNames.AddFundsPanel); break; case "TacoOpenButton": TacoManager.OpenFoldout(); break; case "LoginRegisterButton": TacoManager.ShowPanel(PanelNames.RegisterPanel); break; case "NavLogoutButton": TacoManager.AskToLogoutUser(); break; default: break; } } }
public void OnNavPress(bool isDown) { if (!isDown) { ButtonSound("Default"); switch (name) { case "Feedback": Application.OpenURL("mailto:" + "*****@*****.**"); break; case "FilterListButton": TacoManager.ShowPanel(TacoManager.MyProfilePanel.activeSelf ? PanelNames.FilterActiveListPanel : PanelNames.FilterListPanel); break; case "SortListButton": TacoManager.ShowPanel(TacoManager.MyProfilePanel.activeSelf ? PanelNames.SortActiveListPanel : PanelNames.SortListPanel); break; case "MyLeaderboardTournamentsButton": TournamentManager.Instance.ShowTournamentPanel(PanelNames.MyLeaderboardPanel); break; case "TacoOpenButton": TacoManager.OpenFoldout(); break; case "LoginRegisterButton": TacoManager.ShowPanel(PanelNames.RegisterPanel); break; case "NavLogoutButton": TacoManager.AskToLogoutUser(); break; case "SignInButton": TacoManager.ShowPanel(PanelNames.LoginPanel); break; case "ViewAllTransactions": TacoManager.ShowPanel(PanelNames.MyTransactionPanel); break; default: break; } } }