public void Close(float closeSpeed)
 {
     vendorGroup.FadeOutCallback(this, closeSpeed, (done) =>
     {
         vendorGroup.interactable    = false;
         vendorGroup.blocksRaycasts  = false;
         vendorGroup.alpha           = 0;
         UIManager.Instance.isInMenu = false;
     });
 }
Пример #2
0
 public void Hide()
 {
     if (_buildingPopbox != null)
     {
         _buildingPopbox.FadeOutCallback(this, .2f, (done) =>
         {
             SetBlocking(false);
             isOpen = false;
             _buildingPopbox.alpha       = 0;
             UIManager.Instance.isInMenu = false;
         });
     }
 }