Example #1
0
    void CheckScreenNum()
    {
        switch (CameraMovement.currentPage)
        {
        case 1:
            mySubwayState = SubwayState.One;
            break;

        case 2:
            mySubwayState = SubwayState.Two;
            break;

        case 3:
            mySubwayState = SubwayState.Three;
            break;

        case 4:
            mySubwayState = SubwayState.Four;
            break;

        default:
            mySubwayState = SubwayState.None;
            break;
        }
    }
Example #2
0
 void CheckScreenNum()
 {
     if (HorizontalScrollSnap.CurrentPage == 1 && HorizontalScrollSnap._settled && !HorizontalScrollSnap._moveStarted)
     {
         mySubwayState = SubwayState.One;
     }
     else if (HorizontalScrollSnap.CurrentPage == 2 && HorizontalScrollSnap._settled && !HorizontalScrollSnap._moveStarted)
     {
         mySubwayState = SubwayState.Two;
     }
     else if (HorizontalScrollSnap.CurrentPage == 3 && HorizontalScrollSnap._settled && !HorizontalScrollSnap._moveStarted)
     {
         mySubwayState = SubwayState.Three;
     }
     else if (HorizontalScrollSnap.CurrentPage == 4 && HorizontalScrollSnap._settled && !HorizontalScrollSnap._moveStarted)
     {
         mySubwayState = SubwayState.Four;
     }
     else
     {
         mySubwayState = SubwayState.None;
     }
 }
Example #3
0
    public void ChangeToSubway()
    {
        Mask.alpha = 1;
        if (isTutorial)
        {
            TutorialManager.scrollControl(true);
            myCameraState = CameraState.Subway;
        }
        else if (LevelManager.isInstruction)//换到鱼界面
        {
            print("Final camera controller clicktime = 7");
            myHSS.GoToScreen(3);
            LevelManager.clicktime = 7;
            Show(fishShoutCG);
        }

        Hide(TakePhoto);
        Hide(Posture);
        transform.position = new Vector3(0, 0, -10);
        if (myCameraState == CameraState.Closet || myCameraState == CameraState.Map ||
            myCameraState == CameraState.App || myCameraState == CameraState.Ad)
        {
            if (lastCameraState != CameraState.Closet && lastCameraState != CameraState.Map &&
                lastCameraState != CameraState.App && myCameraState != CameraState.Ad)
            {
                myCameraState = lastCameraState;
            }
            else
            {
                myCameraState = CameraState.Subway;
            }
        }


        //hide everything
        Hide(Inventory);
        Show(subwayBackground);
        Hide(frontPage);
        Hide(appBackground);
        Hide(NPCPage);
        Hide(SubwayMap);
        Hide(postpage);

        HideAllPersonalPages();

        //for Tutorial
        if (isTutorial)
        {
            if (TutorialManager.tutorialNumber == 14)//从换装界面出来
            {
                TutorialManager.scrollControl(true);
                mySubwayState = SubwayState.Four;
                myHSS.GetComponent <HorizontalScrollSnap>().GoToScreen(4);
                TutorialManager.tutorialNumber = 15;
            }
            else if (TutorialManager.tutorialNumber == 15)//从地铁界面出来
            {
                mySubwayState = SubwayState.One;
                myHSS.GetComponent <HorizontalScrollSnap>().GoToScreen(1);
                TutorialManager.tutorialNumber = 16;
            }
            else if (TutorialManager.tutorialNumber == 16)
            {
                mySubwayState = SubwayState.One;
                myHSS.GetComponent <HorizontalScrollSnap>().GoToScreen(1);
                TutorialManager.tutorialNumber = 15;
            }
        }
    }