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