Beispiel #1
0
    bool cor_state = false; //이동 코루틴 실행상태일떄


    void Start()
    {
        animator     = GetComponent <Animator>();
        book_colider = GetComponent <BoxCollider>();

        getKey_script = Camera.main.GetComponent <ActionController_GetKey>();
    }
Beispiel #2
0
    void Start()
    {
        displayManager_script2         = GameObject.FindObjectOfType <DisplayManager_3stage>();
        actionController_2stage_script = FindObjectOfType <ActionController_02_VER2>();

        actionController_2stage_script.enabled = false;

        doorAnimation = GameObject.FindObjectOfType <RewardDoor_Open>();

        getKey_script = GameObject.FindObjectOfType <ActionController_GetKey>();

        dollAniManager_script = GameObject.FindObjectOfType <DollAniManager>();

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

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