Ejemplo n.º 1
0
    void Start()
    {
        fpCam_Script  = Camera.main.GetComponent <FirstPersonCamera>();
        player_script = GameObject.FindObjectOfType <Player_HJ>();
        NoteImage.gameObject.SetActive(false);
        if (ConditionPanel != null)
        {
            ConditionPanel.SetActive(false);
        }

        // - 재생시켜야할 엔딩 영상
        loadEnding_script = GameObject.FindObjectOfType <EndingVideo_Loading>();

        // - 해제해야할 액션 컨트롤러
        endingContrler_script = GameObject.FindObjectOfType <ActionController_Ending>();
    }
Ejemplo n.º 2
0
    void Start()
    {
        selectSlot_script = GameObject.FindObjectOfType <SelectSlot>();

        loadEnding_script = GameObject.FindObjectOfType <EndingVideo_Loading>();

        // 외곽선
        OutlineController = GameObject.FindObjectOfType <DrawOutline_HJ>();

        //장애물,벽
        obstacleReader_script = GameObject.FindObjectOfType <ObstacleReader>();
        _obstacle_layer       = (1 << LayerMask.NameToLayer("Ending")) + (1 << LayerMask.NameToLayer("Obstacle"));

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

        //게임매니저
        gameMgr_script = GameObject.FindObjectOfType <GameMgr>();
    }