Beispiel #1
0
 public void WinMoneyClick()
 {
     SeembaAnalyticsManager.Get.SendUserEvent("Win Money Click");
     BottomMenuController._currentPage = 0;
     BottomMenuController.Show();
     ShowScene(Menu.winMoney);
 }
        public void backToWinMoney()
        {
            ViewsEvents.Get.WinMoneyClick();
            BottomMenuController bottomMenu = BottomMenuController.Get;

            bottomMenu.selectWinMoney();
            bottomMenu.unselectSettings();
            bottomMenu.unselectHome();
            bottomMenu.unselectHaveFun();
        }
 // Start is called before the first frame update
 void OnEnable()
 {
     BottomMenuController.Show();
     BottomMenuController.Get.unselectHaveFun();
     BottomMenuController.Get.unselectWinMoney();
     BottomMenuController.Get.unselectMarket();
     BottomMenuController.Get.unselectSettings();
     BottomMenuController.Get.unselectLeaderboard();
     BottomMenuController.Get.unselectAchievements();
     BottomMenuController.Get.selectHome();
 }
Beispiel #4
0
        private void OpenWallet(string last_view)
        {
            BottomMenuController bottomMenu = BottomMenuController.Get;

            bottomMenu.unselectHome();
            bottomMenu.unselectHaveFun();
            bottomMenu.unselectWinMoney();
            bottomMenu.unselectSettings();
            BottomMenuController.Hide();
            ViewsEvents.Get.WalletClick(last_view);
        }
 public void yesSoldeInsuffisant(string last_view)
 {
     UnityThreading.ActionThread thread;
     thread = UnityThreadHelper.CreateThread(() =>
     {
         Thread.Sleep(500);
         UnityThreadHelper.Dispatcher.Dispatch(() =>
         {
             BottomMenuController bottomMenu = BottomMenuController.Get;
             bottomMenu.unselectWinMoney();
             bottomMenu.selectSettings();
             bottomMenu.unselectHome();
             bottomMenu.unselectHaveFun();
             ViewsEvents.Get.WalletClick(last_view);
         });
     });
 }
        //------------------------------------------------------------------------
        public void LerpToPage(int aPageIndex)
        {
            focusedPage = aPageIndex;

            if (aPageIndex == 0)
            {
                BottomMenuController._currentPage = 1;
                BottomMenuController.Show();
            }
            else
            {
                BottomMenuController._currentPage = 1;
                BottomMenuController.Hide();
            }
            aPageIndex   = Mathf.Clamp(aPageIndex, 0, _pageCount - 1);
            _lerpTo      = _pagePositions[aPageIndex];
            _lerp        = true;
            _currentPage = aPageIndex;
        }
Beispiel #7
0
        private IEnumerator CongratsButtonClick()
        {
            HidePopupContent(PopupManager.Get.PopupController.PopupCongrats);
            if (ViewsEvents.Get.GetCurrentMenu() != ViewsEvents.Get.Menu)
            {
                ViewsEvents.Get.GoBack();
            }
            BottomMenuController.Show();
            if (ViewsEvents.Get.Menu.GetCurrentSubMenu() == ViewsEvents.Get.Menu.Settings)
            {
                ViewsEvents.Get.Menu.ScrollSnap.CompteBackButtonClick();
                yield return(new WaitForSeconds(0.15f));

                ViewsEvents.Get.WinMoneyClick();
            }
            else
            {
                ViewsEvents.Get.ShowScene(EventsController.last_view);
                yield return(new WaitForSeconds(0.15f));

                ViewsEvents.Get.WinMoneyClick();
            }
            ViewsEvents.Get.BankingInfo.CleatInputs();
        }
Beispiel #8
0
 public void HaveFunClick()
 {
     SeembaAnalyticsManager.Get.SendUserEvent("Have fun Click");
     BottomMenuController.Show();
     ShowScene(Menu.HaveFun);
 }
Beispiel #9
0
 public void ContactClick()
 {
     SeembaAnalyticsManager.Get.SendUserEvent("Contact Click");
     BottomMenuController.Hide();
     ShowScene(Menu.Contact);
 }
Beispiel #10
0
 public void LegalClick()
 {
     SeembaAnalyticsManager.Get.SendUserEvent("Legal Click");
     BottomMenuController.Hide();
     ShowScene(Menu.Legal);
 }
Beispiel #11
0
 public void AchievementsClick()
 {
     SeembaAnalyticsManager.Get.SendUserEvent("Achivements Click");
     BottomMenuController.Show();
     ShowScene(Menu.Achievements);
 }
Beispiel #12
0
 public void LeaderboardClick()
 {
     SeembaAnalyticsManager.Get.SendUserEvent("Leaderboard Click");
     BottomMenuController.Show();
     ShowScene(Menu.Leaderboard);
 }
Beispiel #13
0
 public void MarketClick()
 {
     SeembaAnalyticsManager.Get.SendUserEvent("Market Click");
     BottomMenuController.Show();
     ShowScene(Menu.Market);
 }
Beispiel #14
0
 void Awake()
 {
     sInstance = this;
 }