示例#1
0
 private void OnMouseEnter()
 {
     if (CanShowVendor())
     {
         popupUI.FadeIn(this, .2f);
         SoundManager.Instance.PlaySound(vendorHoverSFX, transform.position);
     }
 }
 public void Show(string level, bool isMaxLevel)
 {
     UIManager.Instance.isInMenu = true;
     levelText.text = level;
     ToggleUpgradeButton(!isMaxLevel);
     _buildingPopbox.FadeIn(this, .2f);
     SetBlocking(true);
     isOpen = true;
 }
示例#3
0
 public void ToggleCinematic(bool b)
 {
     if (b)
     {
         cinematicBars.FadeIn();
         gui.FadeOut();
     }
     else
     {
         cinematicBars.FadeOut();
         gui.FadeIn();
     }
 }