コード例 #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();
        }
コード例 #4
0
 public void ToggleVisible()
 {
     IsVisible = !IsVisible;
     Item      = GenericShopController.Instance.CurrentItem;
     if (IsVisible)
     {
         _tweenEffect.StartTween(0);
     }
     else
     {
         _tweenEffect.RewindTween(0);
     }
 }
コード例 #5
0
 void ShowMentor()
 {
     _dialogTween.StartTween();
 }