Inheritance: MonoBehaviour
示例#1
0
    public void Start()
    {
        instance = GetComponent <Menu_Controller>();

        dataController = Data_Controller.instance;

        categoryDropdown        = categoryDropdownObject.GetComponent <Dropdown>();
        difficultyDropdown      = difficultyDropdownObject.GetComponent <Dropdown>();
        typeOfQuestionsDropdown = typeOfQuestionsDropdownObject.GetComponent <Dropdown>();
        //encodingDropdown = encodingDropdownObject.GetComponent<Dropdown>();

        CategoriesAssignment();
        DifficultyAssignment();
        TypeAssignment();
        //EncodingAssignment();
    }
示例#2
0
        IEnumerator LoadInitialData()
        {
            string path = "Object/NewUI/TabletMenu";

            yield return(StartCoroutine(ResourceLoader.Instance.Load <GameObject>(path,
                                                                                  o =>
            {
                var tabletMenu = Instantiate(o) as GameObject;
                tabletMenu.transform.position = new Vector3(0, 0, 0.5f);
                tablet_Menu = tabletMenu.GetComponent <Menu_Controller>();
                tablet_Menu.InitMenu(LeapModule);
                tabletMainMenu = tabletMenu.transform.GetChild(0).gameObject;
                tabletMusicMenu = tabletMenu.transform.GetChild(1).gameObject;
                tabletOptionMenu = tabletMenu.transform.GetChild(2).gameObject;
            })));

            SetLoadComplete();
        }