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