Beispiel #1
0
        protected override void SetPhaseUIShown(FirstContactPhase phase, bool choice)
        {
            switch (phase)
            {
            case FirstContactPhase.AnturaSpace_Shop:
                UI.ShowShopButton(choice);
                if (choice)
                {
                    ShopDecorationsManager.SetContextClosed();
                }
                else
                {
                    ShopDecorationsManager.SetContextHidden();
                }
                break;

            case FirstContactPhase.AnturaSpace_Customization:
                m_oCustomizationButton.gameObject.SetActive(choice);
                break;

            case FirstContactPhase.AnturaSpace_Photo:
                m_oPhotoButton.gameObject.SetActive(choice);
                break;

            case FirstContactPhase.AnturaSpace_Exit:
                if (choice)
                {
                    _mScene.ShowBackButton();
                }
                else
                {
                    _mScene.HideBackButton();
                }
                break;
            }
        }
Beispiel #2
0
        private void HandleContextChange(ShopContext shopContext)
        {
            //Debug.Log("CONTEXT UI SHOP: " + shopContext);
            switch (shopContext)
            {
            case ShopContext.Purchase:
                scene.HideBackButton();
                showPurchasePanelAlwaysAvailableTween.PlayForward();
                showShopPanelTween.PlayForward();
                showDragPanelTween.PlayBackwards();
                showConfirmationPanelTween.PlayBackwards();
                break;

            case ShopContext.NewPlacement:
                scene.HideBackButton();
                showPurchasePanelAlwaysAvailableTween.PlayBackwards();
                showShopPanelTween.PlayBackwards();
                showDragPanelTween.PlayBackwards();
                showConfirmationPanelTween.PlayBackwards();
                break;

            case ShopContext.MovingPlacement:
                scene.HideBackButton();
                showPurchasePanelAlwaysAvailableTween.PlayBackwards();
                showShopPanelTween.PlayBackwards();
                if (!AnturaSpaceScene.I.TutorialMode)
                {
                    showDragPanelTween.PlayForward();
                }
                showConfirmationPanelTween.PlayBackwards();
                break;

            case ShopContext.SpecialAction:
                scene.HideBackButton();
                showShopPanelTween.PlayBackwards();
                showDragPanelTween.PlayBackwards();
                showConfirmationPanelTween.PlayBackwards();
                break;

            case ShopContext.Closed:
                if (!scene.TutorialMode)
                {
                    scene.ShowBackButton();
                }
                showPurchasePanelAlwaysAvailableTween.PlayForward();
                showConfirmationPanelTween.PlayBackwards();
                break;

            case ShopContext.Customization:
                scene.HideBackButton();
                showPurchasePanelAlwaysAvailableTween.PlayBackwards();
                showConfirmationPanelTween.PlayBackwards();
                break;

            case ShopContext.Hidden:
                if (!scene.TutorialMode)
                {
                    scene.ShowBackButton();
                }
                showPurchasePanelAlwaysAvailableTween.PlayBackwards();
                showConfirmationPanelTween.PlayBackwards();
                break;

            default:
                throw new ArgumentOutOfRangeException("shopContext", shopContext, null);
            }
        }