Пример #1
0
    public void CancelAllUI(bool clickMachine)
    {
        inventorySlotMgt.CloseAllUI();
        if (!clickMachine)
        {
            AllMachines.CloseAllMachines();
        }
        BagsController.HideNotice();

        InstructionDismiss();

        Hide(TakePhoto);
        Hide(fishShoutCG);
        Hide(SubwayMap);
        Hide(Inventory);
        Hide(frontPage);
        Hide(appBackground);
        Hide(albumBackground);
        Hide(albumCG);
        Hide(albumDetailCG);
        Hide(frontPage);
        Hide(SavingPage);


        isShown = false;
    }
Пример #2
0
    public IEnumerator trainPause()
    {
        float normalSpeed = 0.3f;

        FinalCameraController.CancelAllUI(false);
        FinalCameraController.enableScroll = false;
        Banner.SetActive(false);
        pauseBeforeMove = true;

        if (FinalCameraController.alreadyNotice)
        {
            BagsController.HideNotice();
        }


        Show(FinalCameraController.disableInputCG);
        BlackScreen.SetActive(true);
        FinalCameraController.ChangeToSubway();
        FinalCameraController.CameraMovement.JumpToPage(4);

        yield return(new WaitForSeconds(1f));

        BlackScreen.SetActive(false);
        yield return(new WaitForSeconds(0.5f));

        if (LevelManager.UIRateShown && LostAndFound.totalCount > 0)
        {
            StartCoroutine(LostAndFound.AnimationDropNUm());
            yield return(new WaitForSeconds(1f));
        }
        else
        {
            AdsController.UpdatePosters();
            yield return(new WaitForSeconds(1f));
        }

        FinalCameraController.ChangeCameraSpeed(normalSpeed * 0.5f);

        if (!LevelManager.FishReturnBagShown)
        {
            FinalCameraController.GotoPage(3);
            if (CountBagInMachine(2))
            {
                yield break;
            }

            yield return(new WaitForSeconds(0.5f));

            FinalCameraController.GotoPage(2);
            if (CountBagInMachine(1))
            {
                yield break;
            }
            if (CountBagInMachine(0))
            {
                yield break;
            }
        }


        StartCoroutine(TrainPauseResume());
    }