public static void ClearAll()
 {
     player = null;
     staticEntities.Clear();
     dynamicEntities.Clear();
     matrix = new MatrixSpacePartition<Entity>();
     //foreach (var item in GetBigList())
     //{
     //    rectangleTree.Remove(item);
     //}
     rectangleTree = null;
 }
 public static void Init(GraphicsDevice graphics)
 {
     matrix = new MatrixSpacePartition<Entity>();
     dynamicEntities = new List<Entity>();
     staticEntities = new List<Entity>();
     netPlayers = new List<NetPlayer>();
     camera = new Camera(graphics.Viewport);
 }