コード例 #1
0
        public static void SetupUniqueFactoryButton()
        {
            var uniqueFactoryInfo = UIView.Find <UIPanel>("(Library) UniqueFactoryWorldInfoPanel");

            if (UBMenuPanel == null)
            {
                UBMenuPanel = (uniqueFactoryInfo.AddUIComponent(typeof(UniqueFactoryButton)) as UniqueFactoryButton);
            }
            UBMenuPanel.Show();
        }
コード例 #2
0
 public static void RemoveGui()
 {
     Loader.isGuiRunning = false;
     if (PBMenuPanel != null)
     {
         UnityEngine.Object.Destroy(PBMenuPanel);
         Loader.PBMenuPanel = null;
     }
     if (UBMenuPanel != null)
     {
         UnityEngine.Object.Destroy(UBMenuPanel);
         Loader.UBMenuPanel = null;
     }
     if (WBMenuPanel != null)
     {
         UnityEngine.Object.Destroy(WBMenuPanel);
         Loader.WBMenuPanel = null;
     }
 }