Advertisement
Guest User

Untitled

a guest
May 25th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.55 KB | None | 0 0
  1. //This is in my initialize function. The screenContainer is declared at class scope
  2. //The problem is I need to remove it from the ShapeCollection but keep it in the ShapeManager... this is why it isnt showing correctly
  3.  
  4. levelPolies = FlatRedBallServices.Load<ShapeCollection>(@"Content/LevelData/TestLevel",this.ContentManagerName);
  5. screenContainer = ShapeManager.AddAxisAlignedRectangle((AxisAlignedRectangle)levelPolies.FindByName("LevelBounds"));
  6. ShapeManager.Remove((AxisAlignedRectangle)levelPolies.FindByName("LevelBounds"));
  7. levelPolies.AddToManagers();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement