예제 #1
0
    private void Awake()
    {
        _startDoor = transform.GetChild(0).GetComponent <CerrarPuzzle>();
        _puzzle    = transform.GetChild(2).gameObject;
        _puzzle.SetActive(false);

        GameObject cam = GameObject.FindGameObjectWithTag("MainCamera");

        _follow = cam.GetComponent <FollowPlayer>();
        _size   = cam.GetComponent <ResizeCamera>();
    }
 private void Awake()
 {
     _cam      = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <ResizeCamera>();
     _collider = GetComponentInParent <BoxCollider2D>();
 }