void CustomInitialize() { // populate the list with some instances of the Sprite-inheriting Entity. // We're going to put them on a Layer. In old Glue (before February 2014) // the List would remove itself first, removing the entity from all lists including // the list that the Screen has. for (int i = 0; i < 3; i++) { Entities.SpriteInheritingEntity newInstance = new Entities.SpriteInheritingEntity( ContentManagerName, false); newInstance.AddToManagers(this.LayerInstance); this.SpriteInheritingEntityList.Add(newInstance); } }
void CustomInitialize() { // populate the list with some instances of the Sprite-inheriting Entity. // We're going to put them on a Layer. In old Glue (before February 2014) // the List would remove itself first, removing the entity from all lists including // the list that the Screen has. for (int i = 0; i < 3; i++) { Entities.SpriteInheritingEntity newInstance = new Entities.SpriteInheritingEntity( ContentManagerName, false); newInstance.AddToManagers(this.LayerInstance); this.SpriteInheritingEntityList.Add(newInstance); } }