Пример #1
0
 public void Unload(Layer layer)
 {
     Game.Components.Remove(layer);
     layer.ForceUnload();
     layer.Enabled = false;
 }
Пример #2
0
 public void Load(Layer layer)
 {
     Game.Components.Add(layer);
     layer.Initialize();
     layer.ForceLoad();
     layer.Enabled = true;
 }
Пример #3
0
 public void Show(Layer layer)
 {
     layer.Visible = true;
     foreach (Object2D tmp in layer.ObjectList)
     {
         tmp.Visible = true;
     }
 }
Пример #4
0
 public void Hide(Layer layer)
 {
     foreach (Object2D tmp in layer.ObjectList)
     {
         tmp.Visible = false;
     }
     layer.Visible = false;
 }