void Awake()
        {
            if (ballControl == null)
            {
                ballControl = this;
            }
            else
            {
                GameObject.Destroy(this.gameObject);
            }

            balls = new Ball[0];
        }
 public static BallController Get()
 {
     if (ballControl != null)
     {
         return(ballControl);
     }
     else
     {
         GameObject obj = new GameObject("BallController");
         obj.transform.SetParent(GameController.Get().transform);
         obj.tag     = "Controller";
         ballControl = obj.AddComponent <BallController>();
         return(ballControl);
     }
 }
 public void UnPauseGame()
 {
     IsOnPause = false;
     BoardController.Get().OnUnpause();
     BallController.Get().OnUnpause();
 }
 public void PauseGame()
 {
     IsOnPause = true;
     BoardController.Get().OnPause();
     BallController.Get().OnPause();
 }
 public void Cleanup()
 {
     BoardController.Get().Cleanup();
     BallController.Get().Cleanup();
 }