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