public void Render(TimeSpan elapsedGameTime)
 {
     PegPhysicsManager.Client().Render();
     BackgroundPlane.Render();
     CannonPlane.Client().Render();
     ChutesPlane.Client().Render();
     PegsPlane.Client().Render();
     OverlaysPlane.Render();
     CannonBallPlane.Client().Render();
 }
        public override void Init()
        {
            CreateObjects();
            base.Init();

            this.BackgroundPlane.Init();
            this.OverlaysPlane.Init();
            this.GameModel.Client().TouchManager.Init();

            Renderer.AddLayer(BackgroundPlane.Plane);
            Renderer.AddLayer(ChutesPlane.Client().BackPlane);
            Renderer.AddLayer(CannonBallPlane.Client().Plane);
            Renderer.AddLayer(CannonPlane.Client().Plane);
            Renderer.AddLayer(ChutesPlane.Client().FrontPlane);
            Renderer.AddLayer(PegsPlane.Client().Plane);
            Renderer.AddLayer(OverlaysPlane.Plane);

            if (PegPhysicsManager.Client().ShouldDraw)
            {
                //            Renderer.AddLayer(PegPhysicsManager.Plane);
            }
        }
 public static ClientPegsPlane Client(this PegsPlane obj)
 {
     return((ClientPegsPlane)obj);
 }