Example #1
0
 private void SetNewSpace(Space space)
 {
     camCtrl?.Dispose();
     mainCamera?.Dispose();
     this.space          = space;
     mainCamera          = new Camera.Camera(space);
     mainCamera.Changed += new Camera.Camera.Doing(pb_render.Refresh);
     pb_render.Image     = mainCamera.Screen;
     camCtrl             = new Camera.Controller(mainCamera, pb_render);
     RefreshComponents();
 }