public static void SetupUniqueFactoryButton() { var uniqueFactoryInfo = UIView.Find <UIPanel>("(Library) UniqueFactoryWorldInfoPanel"); if (UBMenuPanel == null) { UBMenuPanel = (uniqueFactoryInfo.AddUIComponent(typeof(UniqueFactoryButton)) as UniqueFactoryButton); } UBMenuPanel.Show(); }
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; } }