Example #1
0
 public void OpenShop()
 {
     if (_shop == null)
     {
         _shop = new ShopAndBar(_game, true, "Sprites/ShopOverlay.png");
         LateAddChild(_shop);
     }
 }
 public void OpenBar()
 {
     if (_bar == null)
     {
         _bar = new ShopAndBar(_game, false, "Sprites/BarOverlay.png");
         LateAddChild(_bar);
     }
 }
Example #3
0
 public void CloseShop()
 {
     _shop.DestroyShop();
     _shop.LateDestroy();
     _shop = null;
 }
 public void CloseShop()
 {
     _bar.DestroyBar();
     _bar.LateDestroy();
     _bar = null;
 }