Beispiel #1
0
    void Start()
    {
        endingBook_script = GameObject.FindObjectOfType <RewardBook_Open>();

        fpCam_Script  = Camera.main.GetComponent <FirstPersonCamera>();
        player_script = GameObject.FindObjectOfType <Player_HJ>();

        eB_colider.enabled        = true;
        endingBook_script.enabled = true;

        endingCtrller_script = GameObject.FindObjectOfType <ActionController_Ending>();

        //라이트
        //_lightOn_script = GameObject.FindObjectOfType<LightOn_3stage>();

        //string[] res = UnityStats.screenRes.Split('x');
        //Debug.Log(int.Parse(res[0]) + " " + int.Parse(res[1]));
        //Vector3 halfScreen;

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

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

        // 쪽지 매니저
        notemager = FindObjectOfType <NoteManger>(); //-> 해당 스크립트는 쪽지 매니저 검사 안해도 댐
    }
Beispiel #2
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>();
    }