Esempio n. 1
0
    private void ShowCameraBG()
    {
        KararaA.SetActive(false);
        Debug.Log("ShowCameraBG");
        if (AdClick1stTime)
        {
            Posture.SetActive(true);
            Show(CameraBackground);
            ChangeHintPos(HintPosCamera, 3);
            body.sprite = initialBody;
        }
        else
        {
            // set all children
            Posture.SetActive(true);
            Show(CameraBackground);
            CameraBackground.GetComponent <Image>().sprite = cameraBGFull;

            StartCoroutine(ShowShutterHint());


            //身上穿的衣服
            // if(isAlter) {body.sprite = pos0WorkAlter;}
            // else {body.sprite = pos0Work;}

            everything.sprite = null;
            HintScreen.transform.localPosition = HintPosShutter;
        }
    }
Esempio n. 2
0
 private void GoToIns()
 {
     Ins.SetActive(true);
     Posture.SetActive(false);
     TutorialCameraController.myCameraState = TutorialCameraController.CameraState.App;
     //HintPosInsBack 暂时不用
 }
Esempio n. 3
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();
        }
    }
Esempio n. 4
0
    IEnumerator BackToSubway()
    {
        //出现fish喊话
        Show(scream);
        yield return(new WaitForSeconds(0.5f));

        KararaA.SetActive(true);
        yield return(new WaitForSeconds(0.5f));

        Hide(CameraBackground);
        Posture.SetActive(false);
    }
Esempio n. 5
0
 public void ChangeToAdvertisement()
 {
     //Hide(subwayBackground);
     if (myCameraState != CameraState.Subway)
     {
         return;
     }
     myCameraState = CameraState.Ad;
     if (!AdInstructionShown)
     {
         InstructionShow();
         AdInstructionShown = true;
     }
     Show(TakePhoto);
     phone.SetActive(false);
     Posture.SetActive(true);
     lastCameraState = myCameraState;
     //transform.position = new Vector3(24, 0, -10);
     RatingSys.LeaveSubway();
 }
Esempio n. 6
0
    // Start is called before the first frame update
    void Start()
    {
        Debug.Log("PERSISTENT:" + Application.persistentDataPath);
        if (!isTutorial)
        {
            setting.SetActive(false);
            instruction.SetActive(false);
        }
        //        myCameraState = CameraState.Subway;
        myAppState = AppState.Mainpage;

        CameraMovement = transform.gameObject.GetComponent <CameraMovement>();

        InstagramController  = GameObject.Find("---InstagramController").GetComponent <InstagramController>();
        RatingSys            = GameObject.Find("FloatingUI").GetComponent <RatingSystem>();
        inventorySlotMgt     = GameObject.Find("---InventoryController").GetComponent <InventorySlotMgt>();
        FishBossNotification = GameObject.Find("FishBossUI").GetComponent <FishBossNotification>();
        BagsController       = GameObject.Find("---BagsController").GetComponent <BagsController>();
        FishTextManager      = GameObject.Find("---FishTextManager").GetComponent <FishTextManager>();
        FishBossNotification.HideFish();


        fishTalk.SetActive(false);
        Hide(frontPage);
        Hide(TakePhoto);
        Posture.SetActive(false);



        fishTalkText = fishTalk.gameObject.GetComponentInChildren <TextMeshPro>();
        Hide(Inventory);
        Hide(fishShoutCG);

        ChapterOneEnd = false;

        alreadyClothUI = false;
    }