Beispiel #1
0
        void OnEnable()
        {
            m_MainMenuUI = this.InstantiateUI(m_MainMenuPrefab.gameObject).GetComponent <MainMenuUI>();
            this.ConnectInterfaces(m_MainMenuUI);
            m_MainMenuUI.alternateMenuOrigin = alternateMenuOrigin;
            m_MainMenuUI.menuOrigin          = menuOrigin;
            m_MainMenuUI.Setup();

            InputUtils.GetBindingDictionaryFromActionMap(m_ActionMap, m_Controls);
        }
Beispiel #2
0
        void Start()
        {
            m_MainMenuUI = this.InstantiateUI(m_MainMenuPrefab.gameObject).GetComponent <MainMenuUI>();
            this.ConnectInterfaces(m_MainMenuUI);
            m_MainMenuUI.alternateMenuOrigin = alternateMenuOrigin;
            m_MainMenuUI.menuOrigin          = menuOrigin;
            m_MainMenuUI.Setup();

            CreateFaceButtons();
            UpdateToolButtons();
        }
Beispiel #3
0
        void Start()
        {
            m_MainMenuUI = instantiateUI(m_MainMenuPrefab.gameObject).GetComponent <MainMenuUI>();
            connectInterfaces(m_MainMenuUI);
            m_MainMenuUI.alternateMenuOrigin = alternateMenuOrigin;
            m_MainMenuUI.menuOrigin          = menuOrigin;
            m_MainMenuUI.Setup();
            m_MainMenuUI.visible = m_Visible;

            CreateFaceButtons(menuTools);
            CreateFaceButtons(menuWorkspaces);
            m_MainMenuUI.SetupMenuFaces();
            UpdateToolButtons();
        }
Beispiel #4
0
        void Start()
        {
            m_MainMenuUI = this.InstantiateUI(m_MainMenuPrefab.gameObject).GetComponent <MainMenuUI>();
            this.ConnectInterfaces(m_MainMenuUI);
            m_MainMenuUI.alternateMenuOrigin = alternateMenuOrigin;
            m_MainMenuUI.menuOrigin          = menuOrigin;
            m_MainMenuUI.Setup();
            m_MainMenuUI.visible = m_Visible;

            CreateFaceButtons(menuTools);
            CreateFaceButtons(menuWorkspaces);
            CreateFaceButtons(settingsMenuProviders.Keys.ToList());
            m_MainMenuUI.SetupMenuFaces();
            UpdateToolButtons();
        }