Пример #1
0
        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;
                }
            }
        }
Пример #2
0
        private void CreateActionButton(ListViewItem item, Tournament t, GameObject prefab, int nbOfActions)
        {
            ListViewItem.ListViewSubItem selectedSubItem = item.SubItems [ColumnNames.IndexOf(TacoConfig.TournamentActionColumn)];
            SelectedPreFabToDestroy       = Instantiate(prefab) as GameObject;
            selectedSubItem.CustomControl = SelectedPreFabToDestroy.transform as RectTransform;
            Transform background = SelectedPreFabToDestroy.transform.Find("Background");

            RectTransform rectPos = background.gameObject.GetComponent <RectTransform> ();

            if (nbOfActions > 1)
            {
                SelectedPreFabToDestroy.transform.Find("Background/Text").gameObject.SetActive(false);
                rectPos.sizeDelta = new Vector2(rectPos.sizeDelta.x / 2, rectPos.sizeDelta.y);
                SelectedPreFabToDestroy.transform.Find("Background/BackgroundImage").gameObject.SetActive(false);
                SelectedPreFabToDestroy.transform.Find("Background/BackgroundImage1").gameObject.SetActive(true);
            }
            background.GetComponent <Button> ().onClick.AddListener(() => {
                if (prefab.name == ItemShowLeaderboardPrefab.name)
                {
                    TournamentManager.Instance.SeeResult(t);
                }
                else
                {
                    TacoManager.Target = t;
                    TacoManager.ShowPanel(PanelNames.ManageTournamentPanel);
                }
            });

            if (nbOfActions > 1)
            {
                SelectedPreFabToDestroy.transform.Find("Background/Text").gameObject.SetActive(false);
            }
        }
Пример #3
0
        public void GetSession(string token)
        {
            TacoManager.OpenMessage(TacoConfig.TacoLoginStatusMessage00);

            TacoConfig.print("Attempting auto login with token = " + token);

            Action <string> success = (string data) => {
                TacoConfig.print("data= " + data);
                SessionResult r = JsonUtility.FromJson <SessionResult>(data);
                if (r.success)
                {
                    TacoConfig.print("Success = " + r);

                    TacoManager.OpenMessage(TacoConfig.TacoLoginStatusMessage01);
                    TacoManager.UpdateUser(r, token);
                    if (r.msg == "in")
                    {
                        TacoManager.OpenModal("Login success", "Welcome back to game taco! ");
                    }
                    else
                    {
                        TacoManager.OpenModal("Login success", "You get " + r.value + " taco token for login today! ");
                    }
                }
                else
                {
                    //TacoConfig.print("Error = " + r.message );

                    TacoManager.CloseMessage();

                    TacoManager.SetPreferenceString(UserPreferences.userToken, null);
                    TacoManager.SetPreference(UserPreferences.autoLogin, 0);
                    TacoManager.ShowPanel(PanelNames.LoginPanel);

                    if (!string.IsNullOrEmpty(r.message))
                    {
                        TacoManager.OpenModal(TacoConfig.TacoLoginErrorHeader, r.message);
                    }
                }
            };

            Action <string, string> fail = (string data, string error) => {
                TacoConfig.print("Error on Login : "******"Error : " + error);
                }

                TacoManager.CloseMessage();

                string msg = data + (string.IsNullOrEmpty(error) ? "" : " : " + error);

                // TODO : have the message 'Cannot Reach Destination Host' - read 'No Internet Connection'  -- something more clear?
                TacoManager.OpenModal(TacoConfig.TacoLoginErrorHeader, TacoConfig.TacoLoginErrorMessage01 + "\n\n" + msg);
            };
            string url = "api/session/detail/" + TacoConfig.SiteId;

            StartCoroutine(ApiManager.Instance.GetWithToken(url, success, fail));
        }
Пример #4
0
        public void OnClosePress(bool isDown)
        {
            if (!isDown)
            {
                ButtonSound("Default");
                switch (name)
                {
                case "RegisterCloseButton":

                    TacoManager.ShowPanel(PanelNames.LoginPanel);
                    break;

                case "TacoCloseButton":
                    TacoManager.CloseTaco();
                    break;

                case "TacoModalCloseButton":
                    TacoManager.CloseModal();
                    break;

                case "TournamentCloseButton":
                    TacoManager.CloseTaco();
                    break;

                case "AddFundsCloseButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                case "AddGTokensCloseButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                case "WithdrawFundsCloseButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                case "LeaderboardCloseButton": {
                    LeaderboardList.Instance.Destroy();
                    TournamentManager.Instance.ShowTournamentPanel();
                    break;
                }

                case "CreateTournamentCloseButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                case "JoinTournamentCloseButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                case "OurGamesCloseButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                default:
                    break;
                }
            }
        }
Пример #5
0
 public void OnCreateTournamentPress(bool isDown)
 {
     if (!isDown)
     {
         ButtonSound("Default");
         TacoManager.ShowPanel(PanelNames.CreatePublicPanel);
     }
 }
Пример #6
0
        public void PostScore(int score, Tournament target)
        {
            if (target != null && TacoManager.UserLoggedIn())
            {
                Action <string> success = (string data) => {
                    ScoreResult r         = JsonUtility.FromJson <ScoreResult>(data);
                    string      modalBody = TacoConfig.TacoPlayEndedModalBody;
                    string      modal     = TacoConfig.TacoPlayEndedWinnerModalBody;
                    modalBody = modalBody.Replace("&gameEndScore", r.score.ToString());
                    if (r.tournament.typeCurrency == 0)
                    {
                        modal = modal.Replace("&prize", " $ " + Math.Round((Decimal)r.tournament.prize, 2, MidpointRounding.AwayFromZero));
                        modal = modal.Replace("&point", "P " + (int)Math.Round(r.tournament.prize * 50, 0, MidpointRounding.AwayFromZero) + " and ");
                    }
                    else
                    {
                        modal = modal.Replace("&point", string.Empty);
                        modal = modal.Replace("&prize", " T " + r.tournament.prize);
                    }

                    if (r.winner)
                    {
                        TacoManager.CloseAllModals();
                        TacoManager.SetToMainMenu();
                        TacoManager.ShowPanel(PanelNames.MyLeaderboardPanelFromEndGame);
                    }
                    else
                    {
                        TacoManager.CloseAllModals();
                        TacoManager.SetToMainMenu();
                        TacoManager.ShowPanel(PanelNames.MyLeaderboardPanelFromEndGame);
                    }
                    TacoManager.GameToken = null;
                    if (r.updated)
                    {
                        TacoManager.UpdateFundsWithToken(r.funds, r.gTokens.ToString(), r.ticket.ToString());
                    }
                };

                Action <string, string> fail = (string data, string error) => {
                    if (Application.internetReachability == NetworkReachability.NotReachable)
                    {
                        TacoManager.CloseMessage();
                        TacoManager.OpenModalConnectionErrorPanel(TacoConfig.ErrorStatusNoInternet);
                    }
                    else
                    {
                        var r = JsonUtility.FromJson <StartGameResult>(data);
                        TacoManager.CloseAllModals();
                        TacoManager.OpenModalGeneralResultPanel(false, TacoConfig.TacoPlayError, r.message);
                    }
                    TacoManager.GameToken = null;
                };

                StartCoroutine(ApiManager.Instance.EndGame(score, target.id, target.gameId, TacoManager.GameToken, TacoManager.User.token, success, fail));
            }
        }
Пример #7
0
 // Update is called once per frame
 void Update()
 {
     if (this.isActiveAndEnabled & !TacoManager.CheckModalsOpen())
     {
         if (Input.GetKeyDown(KeyCode.Return))
         {
             TacoManager.ShowPanel(PanelNames.MyPublicPanel);
         }
     }
 }
Пример #8
0
        public void OnFoldoutPress(bool isDown)
        {
            if (!isDown)
            {
                ButtonSound("Default");

                // all buttons close the panel - even the close one ;)
                TacoManager.CloseFoldout();

                // do the other stuff they do
                switch (name)
                {
                case "LogoutButton":


                    TacoManager.AskToLogoutUser();
                    break;

                case "TournamentsButton":

                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                case "AddFundsButton":
                    TacoManager.ShowPanel(PanelNames.AddFundsPanel);
                    break;

                case "WithdrawFundsButton":
                    TacoManager.ShowPanel(PanelNames.WithdrawFundsPanel);
                    break;

                case "CreateTournamentButton":

                    TacoManager.ShowPanel(PanelNames.CreatePublicPanel);

                    break;

                case "OtherGamesButton":

                    TacoManager.ShowPanel(PanelNames.FeaturedGamesPanel);

                    break;

                case "AddGTokenButton":

                    TacoManager.ShowPanel(PanelNames.AddGTokensPanel);

                    break;

                case "PrizesButton":
                    TacoManager.ShowPanel(PanelNames.PrizesPanel);
                    break;
                }
            }
        }
Пример #9
0
        private void enterCreateTournament()
        {
            VerticalLayoutGroup dropdownListRect = createTournamentDropDownList.GetComponent <VerticalLayoutGroup> ();

            if (dropdownListRect.childControlHeight)
            {
                StartCoroutine(changeControlsize(dropdownListRect));
            }
            UpdateEntryFeeText(createTournamentEntryFeeLabel);
            TacoManager.ShowPanel(PanelNames.CreatePublicPanel);
        }
Пример #10
0
        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;
                }
            }
        }
Пример #11
0
        public void TacoSigninWithTokenFree()
        {
            var guid           = System.Guid.NewGuid().ToString().Substring(0, 1);
            var random         = UnityEngine.Random.Range(-999, 999);
            var ramdomString   = System.DateTime.Now.Day + guid + System.DateTime.Now.Month + random;
            var scoreToEncrypt = scoreNow + "|" + ramdomString;

            TacoConfig.print(scoreToEncrypt);
            var gToken = TacoManager.EncryptStringToBytes(scoreToEncrypt);

            TacoConfig.print(gToken);
            PlayerPrefs.SetString("gTokenSignUpGift", gToken);
            //Open Register
            TacoManager.ShowPanel(PanelNames.RegisterPanel);
        }
Пример #12
0
 public void TappedInviteFromList(Tournament t, string actionPrefabName, PrivateTournamentsList myPrivatePanel)
 {
     // TODO : move tournament Target to this class
     TacoManager.SetTarget(t);
     if (actionPrefabName == myPrivatePanel.ItemShowLeaderboardPrefab.name)
     {
         ShowTournamentPanel(PanelNames.MyLeaderboardPanel);
     }
     else if (actionPrefabName == myPrivatePanel.ItemPlayPrefab.name)
     {
         TacoManager.OpenModalPlayTournamentPanel(t);
     }
     else if (actionPrefabName == myPrivatePanel.ItemInvitePrefab.name)
     {
         TacoManager.Target = t;
         TacoManager.ShowPanel(PanelNames.ManageTournamentPanel);
     }
 }
Пример #13
0
        private void Start()
        {
            createNewTournamentButton.onClick.AddListener(TournamentManager.Instance.StartCreate);

            enterCreateTournamentButton.onClick.AddListener(enterCreateTournament);

            enterCreateTournamentPopup.onClick.AddListener(delegate {
                ClosePanel();
                if (TacoManager.User != null)
                {
                    enterCreateTournament();
                }
                else
                {
                    Debug.Log(TacoManager.User);
                    TacoManager.ShowPanel(PanelNames.LoginPanel);
                }
            });
        }
Пример #14
0
 public void OnFundsPress(bool isDown)
 {
     if (!isDown)
     {
         ButtonSound("Default");
         // TODO switch to case statement
         if (name == "JoinAddFundsButton")
         {
             TacoManager.ShowPanel(PanelNames.AddFundsPanel);
         }
         else if (name == "NavAddFundsButton")
         {
             TacoManager.ShowPanel(PanelNames.AddFundsPanel);
         }
         else if (name == "NavWithdrawFundsButton")
         {
             TacoManager.ShowPanel(PanelNames.WithdrawFundsPanel);
         }
         else if (name == "AddFundsButton")
         {
             StripeAddFundsManager.Instance.AddFunds();
         }
         else if (name == "WithdrawFundsButton")
         {
             StripeWithdrawFundsManager.Instance.RequestWithdraw();
         }
         else if (name == "TacoFundsBackButton")
         {
             TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
         }
         else if (name == "TacoCloseFundsButton")
         {
             TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
         }
     }
 }
Пример #15
0
        public void OnClosePress(bool isDown)
        {
            if (!isDown)
            {
                ButtonSound("Default");
                switch (name)
                {
                case "RegisterCloseButton":
                    RegisterPanel.Instance.Init();
                    TacoManager.CloseTaco();
                    break;

                case "TacoCloseButton":
                    TacoManager.CloseTaco();
                    break;

                case "TacoModalCloseButton":
                    TacoManager.CloseModal();
                    break;

                case "TournamentCloseButton":
                    TacoManager.CloseTaco();
                    break;

                case "AddFundsCloseButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                case "AddGTokensCloseButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                case "WithdrawFundsCloseButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                case "LeaderboardCloseButton": {
                    LeaderboardList.Instance.Destroy();
                    TournamentManager.Instance.ShowTournamentPanel();
                    TacoManager.Target = null;
                    break;
                }

                case "LeaderboardReturnButton": {
                    LeaderboardList.Instance.Destroy();
                    TacoManager.MyTournamentsPanel.SetActive(true);
                    string panelName = TacoManager.Target.IsPublic ? PanelNames.MyPublicPanel : PanelNames.MyPrivatePanel;
                    GameObject.Find("MyTournamentsPanel/TournamentType/TournamentTypeDropDown").GetComponent <Dropdown>().value = TacoManager.Target.IsPublic ? 0 : 1;
                    TacoManager.ManageTournamentPanel.SetActive(false);
                    TournamentManager.Instance.ShowTournamentPanel(panelName);
                    TacoManager.Target = null;
                    break;
                }

                case "TransactionCloseButton": {
                    TransactionList.Instance.transform.parent.gameObject.SetActive(false);
                    TacoManager.ShowPanel(PanelNames.ProfilePanel);
                    break;
                }

                case "ManageTournamentCloseButton": {
                    TacoManager.ManageTournamentPanel.SetActive(false);
                    TacoManager.TacoBlockingCanvas.SetActive(true);
                    TournamentManager.Instance.ShowTournamentPanel();
                    TacoManager.Target = null;
                    break;
                }

                case "CreateTournamentCloseButton":
                    TacoManager.ReturnToTournamentBoard();
                    break;

                case "JoinTournamentCloseButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                case "OurGamesCloseButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                default:
                    break;
                }
            }
        }
Пример #16
0
        public void GetSession(string token)
        {
            TacoManager.OpenMessage(TacoConfig.TacoLoginStatusMessage00);

            Action <string> success = (string data) => {
                SessionResult r = JsonUtility.FromJson <SessionResult> (data);
                if (r.success)
                {
                    Debug.Log("session: " + data);
                    BalanceManager.Instance.SetRemainingValue(r.remainingClaim, r.login_count);
                    TacoManager.OpenMessage(TacoConfig.TacoLoginStatusMessage01);
                    TacoManager.UpdateUser(r, token);
                    if (r.msg == "in")
                    {
                        //Debug.LogWarning("No longer implemented");
                    }
                    else
                    {
                        TacoManager.OpenModalDailyTokenPanel(r.value);
                    }
                }
                else
                {
                    TacoManager.CloseMessage();
                    TacoManager.SetPreferenceString(UserPreferences.userToken, null);
                    TacoManager.SetPreference(UserPreferences.autoLogin, 0);
                    TacoManager.ShowPanel(PanelNames.LoginPanel);

                    if (!string.IsNullOrEmpty(r.message))
                    {
                        TacoManager.OpenModalLoginFailedPanel(r.message);
                    }
                }
            };

            Action <string, string> fail = (string data, string error) => {
                if (!string.IsNullOrEmpty(data))
                {
                    try {
                        SystemError r = JsonUtility.FromJson <SystemError> (data);
                        if (r.verErr)
                        {
                            //version error
                            TacoManager.OpenModalIncorrectVersionPanel(r.message);
                        }
                        else
                        {
                            string msg = r.message;
                            if (string.IsNullOrEmpty(msg))
                            {
                                msg = TacoConfig.TacoLoginErrorEmailPassword;
                            }
                            TacoManager.OpenModalLoginFailedPanel(msg);
                        }
                    } catch (Exception) {
                        TacoManager.OpenModalLoginFailedPanel(TacoConfig.Error);
                    }
                }
                else
                {
                    TacoManager.OpenModalLoginFailedPanel(TacoConfig.TacoLoginErrorEmailPassword);
                }
                TacoManager.CloseMessage();
            };
            string url = "api/session/detail/" + TacoSetup.Instance.SiteId;

            StartCoroutine(ApiManager.Instance.GetWithToken(url, success, fail));
        }
Пример #17
0
 /// <summary>
 /// Shows the register panel.
 /// </summary>
 public void OpenRegisterPanel()
 {
     TacoManager.ShowPanel(PanelNames.RegisterPanel);
 }
Пример #18
0
 /// <summary>
 /// Shows the login panel.
 /// </summary>
 public void OpenLoginPanel()
 {
     TacoManager.ShowPanel(PanelNames.LoginPanel);
 }
Пример #19
0
        public void OnFoldoutPress(bool isDown)
        {
            if (!isDown)
            {
                ButtonSound("Default");
                // all buttons close the panel - even the close one ;)
                TacoManager.CloseFoldout();
                // do the other stuff they do
                switch (name)
                {
                case "SignIn":
                    TacoManager.ShowPanel(PanelNames.LoginPanel);
                    break;

                case "SignUp":
                    TacoManager.ShowPanel(PanelNames.RegisterPanel);
                    break;

                case "StartMenu":
                case "GameStart":
                    TacoSetup.Instance.ToMainMenu();
                    TacoManager.CloseTaco();
                    break;

                case "AllOurGames":
                    //TacoManager.ShowPanel(PanelNames.FeaturedGamesPanel);
                    Application.OpenURL(Constants.BaseUrl + "games");
                    break;

                case "QuitApp":
                    Application.Quit();
                    break;

                case "HowGameWorks":
                    TacoSetup.Instance.LogEvent("how_it_work");
                    TacoModalManager.Instance.ToHowToPlay0(false);
                    break;

                case "ViewProfile":
                    if (TacoManager.User != null)
                    {
                        TacoManager.ShowPanel(PanelNames.ProfilePanel);
                    }
                    break;

                case "ContactUs":
                    Application.OpenURL(Constants.BaseUrl + "contact");
                    break;

                case "LogoutButton":
                    TacoManager.AskToLogoutUser();
                    break;

                case "TournamentsButton":
                    TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);
                    break;

                case "CreateTournamentButton":
                    TacoManager.ShowPanel(PanelNames.CreatePublicPanel);
                    break;

                case "UserFundFoldout":
                    Application.OpenURL(Constants.BaseUrl);
                    break;

                case "UserTokenFoldout":
                    Application.OpenURL(Constants.BaseUrl + "addtokens");
                    break;

                case "UserPointFoldout":
                    Application.OpenURL(Constants.BaseUrl + "prizes");
                    break;

                case "ProfileButton":
                    Application.OpenURL(Constants.BaseUrl + "account");
                    break;
                }
            }
        }
Пример #20
0
        //TODO put these strings in TacoModels
        public void ModalClicked()
        {
            if (ModalButtonEnabled)
            {
                if (Callback != null)
                {
                    switch (Callback)
                    {
                    case ModalFunctions.ReturnToGame:

                        TacoManager.CloseTaco();

                        break;


                    case ModalFunctions.TournamentGamePosted:

                        // They finished the game, after modal closed - show past tournaments
                        TacoManager.ShowPanel(PanelNames.MyPrivatePanel);

                        break;

                    case ModalFunctions.RegisterResult:

                        // when they close the modal, show login
                        TacoManager.ShowPanel(PanelNames.LoginPanel);

                        break;

                    case ModalFunctions.TournamentSubmit:

                        TournamentManager.Instance.TournamentSubmit();

                        break;

                    case ModalFunctions.TournamentSubmitComplete:

                        // close the creation panel - remove from stack
                        TacoManager.ClosePanel();

                        // refresh and show the current tournaments
                        TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);

                        break;

                    case ModalFunctions.LogoutUser:


                        TacoManager.LogoutUser();


                        break;

                    case ModalFunctions.JoinTournament:


                        TournamentManager.Instance.Join();


                        break;

                    case ModalFunctions.InviteFriends:


                        TournamentManager.Instance.InviteFriend();

                        break;

                    case ModalFunctions.InviteFriendsFromCreate:


                        TournamentManager.Instance.InviteFriendsFromCreate();

                        break;

                    case ModalFunctions.JoinPublicSuccess:

                        // close the join panel - remove from stack
                        TacoManager.ClosePanel();

                        // refresh and show the current tournaments
                        TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);


                        break;

                    case ModalFunctions.StartPlay:
                        GameManager.Instance.StartPlay(TacoManager.Target);
                        break;

                    case ModalFunctions.SawIntro:

                        TacoManager.SetPreference(UserPreferences.sawIntro, 1);
                        TacoManager.ShowPanel(PanelNames.LoginPanel);
                        break;

                    case ModalFunctions.ForfeitTournamentGame:


                        //TacoManager.Instance.ForfeitTournamentGame();


                        break;


                    case ModalFunctions.ReturnToTournaments:


                        // refresh and show the current tournaments
                        TacoManager.ShowPanel(PanelNames.MyTournamentsPanel);


                        break;

                    case ModalFunctions.ReturnToMenu:

                        TacoSetup.Instance.ReturnMenu();
                        break;

                    case ModalFunctions.TacoEndTournament: {
                        TacoSetup.Instance.TacoEndTournament();
                        break;
                    }

                    case ModalFunctions.TacoFreePlayGiftToken: {
                        TacoSetup.Instance.TacoSigninWithTokenFree();
                        break;
                    }
                    }
                }

                TacoConfig.print("DismissModals");

                DismissModal();
            }
        }
Пример #21
0
 public void SignUp()
 {
     ClosePanel();
     TacoManager.ShowPanel(PanelNames.RegisterPanel);
 }
Пример #22
0
 public void SignIn()
 {
     ClosePanel();
     TacoManager.ShowPanel(PanelNames.LoginPanel);
 }