Example #1
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>();
    }
Example #2
0
    void Awake()
    {
        fadeImg = GetComponent <Image>();

        invenCtrler_script = GameObject.FindObjectOfType <GameMgr>();

        option_ingame_script = GameObject.FindObjectOfType <Option_inGame>();
    }