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; }
public void ToggleCinematic(bool b) { if (b) { cinematicBars.FadeIn(); gui.FadeOut(); } else { cinematicBars.FadeOut(); gui.FadeIn(); } }