public static void SetupThreeRoundButton() { if (threeRoundButton == null) { threeRoundButton = (parentGuiView.AddUIComponent(typeof(ThreeRoundButton)) as ThreeRoundButton); } }
public static void RemoveGui() { isGuiRunning = false; if (parentGuiView != null) { parentGuiView = null; UnityEngine.Object.Destroy(threeRoundButton); UnityEngine.Object.Destroy(oneRoundButton); UnityEngine.Object.Destroy(yRoadButton); UnityEngine.Object.Destroy(smoothButton); threeRoundButton = null; oneRoundButton = null; yRoadButton = null; smoothButton = null; } }