Ejemplo n.º 1
0
    public void ChangeToMap()
    {
        if (myCameraState != CameraState.Subway)
        {
            return;
        }

        CancelAllUI(false);

        if (LevelManager.stage > 1)
        {
            CheckInstructionButton.SetActive(true);
        }
        if (LevelManager.stageTransiting && LevelManager.stage == 1)
        {
            StartCoroutine(LevelManager.EnterMap_Tut_S2());
        }

        if (LevelManager.stageTransiting && LevelManager.stage == 2)
        {
            StartCoroutine(LevelManager.EnterMap_Tut_S3());
        }


        lastCameraState = myCameraState;
        myCameraState   = CameraState.Map;
        RatingSys.LeaveSubway();
        phone.SetActive(false);
        Show(SubwayMap);
    }
Ejemplo n.º 2
0
    public void ChangeToApp()
    {
        if (myCameraState != CameraState.Subway && myCameraState != CameraState.App)
        {
            return;
        }

        CancelAllUI(false);

        phone.SetActive(false);
        Hide(fishShoutCG);
        CheckInstructionButton.SetActive(false);
        Debug.Log("change to app0");
        StartCoroutine(ScrollToTop(mainpageScrollRect));
        StartCoroutine(ScrollToTop(albumScrollRect));


        InstagramController.redDot.SetActive(false);

        Hide(SavingPage);
        Hide(TakePhoto);

        lastCameraState = myCameraState;
        myCameraState   = CameraState.App;
        RatingSys.LeaveSubway();
        myAppState = AppState.Mainpage;
        Show(frontPage);
    }
Ejemplo n.º 3
0
    public void ChangeToCloth()
    {
        if (myCameraState != CameraState.Subway)
        {
            return;
        }

        CancelAllUI(false);


        myCameraState = CameraState.Closet;
        CameraMovement.atInventory = true;
        phone.SetActive(false);
        CameraMovement.previousPage = CameraMovement.currentPage;
        Show(Inventory);
        Hide(fishShoutCG);
        Mask.alpha = 0;
        if (!isTutorial)
        {
            CheckInstructionButton.SetActive(true);
        }


        lastCameraState    = myCameraState;
        transform.position = new Vector3(-25, 0, -10);
        if (!InventoryInstructionShown)
        {
            StartCoroutine(WaitingInstruction());
        }
    }
Ejemplo n.º 4
0
    public void ChangeToSubway()
    {
        //if (LevelManager.isInstruction) return;
        //if(LevelManager.stageTransiting)
        //{
        //    LevelManager.UpdateStage();
        //}

        phone.SetActive(true);
        CameraMovement.atInventory = false;
        CameraMovement.JumpToPreviousPage();
        if (!isTutorial)
        {
            CheckInstructionButton.SetActive(false);
        }
        Mask.alpha = 1;



        Hide(TakePhoto);
        Posture.SetActive(false);
        //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;
                RatingSys.GoBackToSubway();
                //todo: kind of connfused
            }
            else
            {
                myCameraState = CameraState.Subway;
                RatingSys.GoBackToSubway();
            }
        }


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


        if (InstagramController.waitingForRefresh && LevelManager.stage > 2)
        {
            InstagramController.RefreshPost();
        }
    }