Пример #1
0
        protected override void SetUpUi()
        {
            base.SetUpUi();

            if (s_GUIManager == null)
            {
                GameObject needsGUIPrefab     = GameObject.Find("NeedsPanel");
                GameObject inventoryGUIPrefab = GameObject.Find("GUIInventory");

                s_GUIManager = new GUIManager();
                s_GUIManager.AddGUI(needsGUIPrefab, false);
                s_GUIManager.AddGUI(inventoryGUIPrefab, true);
            }

            s_GUIManager.OpenGUI("NeedsPanel");
        }