public static void SetupSmoothButton() { if (smoothButton == null) { smoothButton = (parentGuiView.AddUIComponent(typeof(SmoothButton)) as SmoothButton); } }
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; } }