Пример #1
0
        public void Initialise()
        {
            if (!scene)
            {
                scene = FindObjectOfType <AnturaSpaceScene>();
            }

            const float duration = 0.3f;

            showShopPanelTween = DOTween.Sequence().SetAutoKill(false).Pause()
                                 .Append(purchasePanelBottom.DOAnchorPosY(-150, duration).From().SetEase(Ease.OutQuad));
//                    .Join(purchasePanelSide.DOAnchorPosX(1250, duration).From().SetEase(Ease.OutBack));
            showDragPanelTween = DOTween.Sequence().SetAutoKill(false).Pause()
                                 .Append(dragPanel.DOAnchorPosY(-350, duration).From().SetEase(Ease.OutQuad));
            showConfirmationPanelTween =
                confirmationPanel.DOAnchorPosY(-350, duration).From().SetEase(Ease.Linear).SetAutoKill(false).Pause();
            showPurchasePanelAlwaysAvailableTween =
                purchasePanelAlwaysAvailableUI.DOAnchorPosX(200, duration)
                .From()
                .SetEase(Ease.OutBack)
                .SetAutoKill(false);
            scrollRect.horizontalNormalizedPosition = 0;
            scrollShowTween = scrollRect.DOHorizontalNormalizedPos(1, 0.6f).SetAutoKill(false).Pause().SetDelay(0.15f);
            scrollShowTween.ForceInit();

            ShopDecorationsManager.I.OnContextChange += HandleContextChange;
            ShopDecorationsManager.I.OnPurchaseConfirmationRequested += HandlePurchaseConfirmationRequested;
            ShopDecorationsManager.I.OnDeleteConfirmationRequested   += HandleDeleteConfirmationRequested;
            ShopPhotoManager.I.OnPhotoConfirmationRequested          += HandlePhotoConfirmationRequested;
        }
Пример #2
0
 private void OnEnable()
 {
     if (!scene)
     {
         scene = FindObjectOfType <AnturaSpaceScene>();
     }
     HandleContextChange(ShopContext.Purchase);
     scrollShowTween.Restart();
 }
Пример #3
0
 public AnturaIdleState(AnturaSpaceScene controller) : base(controller)
 {
 }
Пример #4
0
 public AnturaCatchingState(AnturaSpaceScene controller) : base(controller)
 {
 }
Пример #5
0
 public AnturaSleepingState(AnturaSpaceScene controller) : base(controller)
 {
 }
 public AnturaCustomizationState(AnturaSpaceScene controller) : base(controller)
 {
 }
Пример #7
0
 public AnturaWaitingThrowState(AnturaSpaceScene controller) : base(controller)
 {
 }
Пример #8
0
 public AnturaDrawingAttentionState(AnturaSpaceScene controller) : base(controller)
 {
 }