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); }
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(); }