Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Scripts / UI / Upgrades / Attack / CloseAttackUpgrades.cs
@Rackday Rackday on 18 Aug 469 bytes Project Added
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class CloseAttackUpgrades : MonoBehaviour
  6. {
  7. //Button variable
  8. public Button exitUpgradesButton;
  9. // Update is called once per frame
  10. void Update()
  11. {
  12. exitUpgradesButton.onClick.AddListener(ClosePanel);
  13. }
  14. //Method to close the attack upgrades panel
  15. void ClosePanel()
  16. {
  17. gameObject.SetActive(false);
  18. }
  19. }