コード例 #1
0
        private IEnumerator tweenIconToTray()
        {
            currentState = ConfirmationState.Animating;
            DisneyStoreTrayAnimator animator = storeController.GetTrayAnimator();
            RewardCategory          category = DisneyStoreUtils.GetItemRewardCategory(item);
            Transform tweenDestination       = animator.MyPenguinDestination;

            if (category == RewardCategory.consumables)
            {
                tweenDestination = animator.ToyboxDestination;
            }
            animator.TweenToTray(tweenDestination, IconImage.transform);
            yield return(new WaitForSeconds(animator.TweenTime));

            storeFranchise.HideConfirmation();
            yield return(null);
        }
コード例 #2
0
        private void showPriceTag(DisneyStoreItemData item)
        {
            PriceTagSpriteSelector.gameObject.SetActive(value: true);
            RewardCategory itemRewardCategory = DisneyStoreUtils.GetItemRewardCategory(item);

            if (DisneyStoreUtils.IsIglooReward(itemRewardCategory))
            {
                PriceTagSpriteSelector.SelectSprite(2);
            }
            else if (itemRewardCategory == RewardCategory.consumables)
            {
                PriceTagSpriteSelector.SelectSprite(1);
            }
            else
            {
                PriceTagSpriteSelector.SelectSprite(0);
            }
        }