예제 #1
0
    private void Awake()
    {
        menuLeftPos  = GameObject.Find("MenuPointerLeft").transform;
        menuRightPos = GameObject.Find("MenuPointerRight").transform;

        _inputManager = GameObject.Find("InputManager").GetComponent <InputManager>();

        _categoryMain = GameObject.Find("CategoryMain").GetComponent <Image>();
        _categoryRoll = GameObject.Find("CategoryRoll").GetComponent <CanvasRenderer>();

        _righttag      = GameObject.FindGameObjectsWithTag("Right");
        _longtag       = GameObject.FindGameObjectsWithTag("Long");
        _everythingtag = GameObject.FindGameObjectsWithTag("Everything");
        _category      = GameObject.FindGameObjectsWithTag("Category");
        _captions      = GameObject.FindGameObjectsWithTag("Caption");
        _fullcaptions  = GameObject.FindGameObjectsWithTag("Full Caption");
        _slicecaptions = GameObject.FindGameObjectsWithTag("Slice Caption");
        _wz            = cube.GetComponent <WheelZoom>();

        _acetCh = GameObject.Find("acetChosen").GetComponent <Image>();
        _dofaCh = GameObject.Find("dofaChosen").GetComponent <Image>();
        _noraCh = GameObject.Find("noraChosen").GetComponent <Image>();
        _seroCh = GameObject.Find("seroChosen").GetComponent <Image>();

        foreach (GameObject category in _category)
        {
            category.SetActive(false);
        }
        foreach (GameObject caption in _slicecaptions)
        {
            caption.SetActive(false);
        }

        _categoryRollImage = _categoryRoll.GetComponent <Image>();

        sliceCategory.SetActive(false);
    }
예제 #2
0
    //public bool modelLinkWork;

    void Start()
    {
        wz    = brain.GetComponent <WheelZoom>();
        _menu = GameObject.Find("Menu").GetComponent <MenuScript>();
    }