예제 #1
0
    SawNoteNumber note_num_script; // 파괴 X 싱글톤, 노트모은개수 확인

    void Start()
    {
        Cursor.lockState = CursorLockMode.None;

        mainCam           = GetComponent <Camera>();//Camera.main;
        OutlineController = GameObject.FindObjectOfType <DrawOutline_HJ>();
        //layerMask = 1 << LayerMask.NameToLayer("Item");

        selectSlot_script = GameObject.FindObjectOfType <SelectSlot>();

        text_script            = puzzleText.gameObject.GetComponent <FadeAni_text>();
        guide_script           = puzzleImage.gameObject.GetComponent <FadeAni_guide>();
        guideController_script = puzzleImage.gameObject.GetComponent <GuideCaption_Controller>();

        ChangeCam_script = GameObject.FindObjectOfType <ChangeCam_1stage>();
        CarPuzzle_script = GameObject.FindObjectOfType <MouseController_CarPuzzle>();

        boxOpen_script = GameObject.FindObjectOfType <BoxOpen>();

        viewNote_script = GameObject.FindObjectOfType <ViewNote_01>();

        checkRange_Script = GameObject.FindObjectOfType <CheckRange>();

        // 쪽지 매니저
        notemager = FindObjectOfType <NoteManger>();

        // 쪽지 상태 (싱글톤)
        note_num_script = FindObjectOfType <SawNoteNumber>();
    }
예제 #2
0
    void Start()
    {
        check = false;

        inventoryCG.interactable   = false;
        inventoryCG.blocksRaycasts = false;

        //RectTransform scrollRectView = GetComponent<RectTransform>();
        //RectTransform Inventory_Panel = GetComponent<RectTransform>();

        animator = Inventory_Panel.GetComponent <Animator>();



        if (SceneManager.GetActiveScene().name == "01_Stage")
        {
            SoundManger.instance.PlayBGMSound(BGMSound);
        }

        if (SceneManager.GetActiveScene().name == "02_Stage")
        {
            SoundManger.instance.PlayBGMSoundVolume(BGMSound, 0.2f);
        }



        // - 인벤토리
        if (puzzleImage != null)
        {
            guide_script           = puzzleImage.gameObject.GetComponent <FadeAni_guide>();
            guideController_script = puzzleImage.gameObject.GetComponent <GuideCaption_Controller>();
        }
        else
        {
            onceCaption = true;
        }

        if (stage == 2)
        {
            fpCam_script = GameObject.FindObjectOfType <FirstPersonCamera>();

            //커서
            //LockCursor();
        }
        else
        {
            //커서
            //noneCursor();
        }

        option_ingame_script = GameObject.FindObjectOfType <Option_inGame>();

        //쪽지매니저
        notemager = FindObjectOfType <NoteManger>();
        //if (notemager.guidePopup == true)

        //게임오버
        gameOver_script = GameObject.FindObjectOfType <GameOverManger>();
    }