Beispiel #1
0
        static void CreateUI()
        {
            UIPage.Initial(UIRoot);
            UIMenu.Initial(UIRoot);
            UINotify.Initial(UIRoot);

            var buff = new GameObject("Buffer");

            buff.transform.SetParent(UIRoot);
            buff.SetActive(false);
            buff.transform.localScale = Vector3.one;
            HGUIManager.Initial(buff.transform);
        }
Beispiel #2
0
        static void CreateUI()
        {
            UIPage.Initial(UIRoot);
            UIMenu.Initial(UIRoot);
            UINotify.Initial(UIRoot);

            var buff = new UIElement();

            buff.name = "Buffer";
            buff.SetParent(UIRoot);
            buff.activeSelf = false;
            buff.localScale = Vector3.one;
            HGUIManager.Initial();
        }