public void Unload(Layer layer) { Game.Components.Remove(layer); layer.ForceUnload(); layer.Enabled = false; }
public void Load(Layer layer) { Game.Components.Add(layer); layer.Initialize(); layer.ForceLoad(); layer.Enabled = true; }
public void Show(Layer layer) { layer.Visible = true; foreach (Object2D tmp in layer.ObjectList) { tmp.Visible = true; } }
public void Hide(Layer layer) { foreach (Object2D tmp in layer.ObjectList) { tmp.Visible = false; } layer.Visible = false; }