示例#1
0
 public void TestBuy()
 {
     if (Money < CurrentItem.Preco)
     {
         _warningPopup.StartTween(0);
         WarningTMPro.text = failureMsg;
     }
     else
     {
         _confirmPopup.StartTween(0);
     }
 }
示例#2
0
 public void DisplayReceivedTickets(int ticketsAmount)
 {
     WarningTMPro.text          = string.Format(popupMsg, ticketsAmount);
     canvasGroup.alpha          = 1;
     canvasGroup.blocksRaycasts = true;
     canvasGroup.interactable   = true;
     _warningPopup.StartTween();
 }
示例#3
0
        void FadeInPopUp()
        {
            _action.RemoveAllListeners();
            _action.AddListener(MissionFocus);

            _actionCarousel.RemoveAllListeners();
            _actionCarousel.AddListener(FadeOutPopUp);
            _carousel.SetVisible(true);
            _carouselTween.StartTween();
        }
 public void ToggleVisible()
 {
     IsVisible = !IsVisible;
     Item      = GenericShopController.Instance.CurrentItem;
     if (IsVisible)
     {
         _tweenEffect.StartTween(0);
     }
     else
     {
         _tweenEffect.RewindTween(0);
     }
 }
 void ShowMentor()
 {
     _dialogTween.StartTween();
 }