MenuSelectEffect.cs 521 B

12345678910111213141516171819202122232425262728
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. public class MenuSelectEffect : MonoBehaviour
  6. {
  7. public GameObject TaskDiscription;
  8. private void OnEnable() {
  9. TaskDiscription.SetActive(true);
  10. }
  11. // Start is called before the first frame update
  12. void Start()
  13. {
  14. }
  15. // Update is called once per frame
  16. void Update()
  17. {
  18. }
  19. private void OnDisable() {
  20. TaskDiscription.SetActive(false);
  21. }
  22. }