UITrophyController.cs 809 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using Colorful;
  3. using Core;
  4. using UnityEngine;
  5. public class UITrophyController : MonoBehaviour
  6. {
  7. private void Update()
  8. {
  9. if (Core.Input.UI.Cancel.OnClick)
  10. {
  11. this.Close();
  12. }
  13. }
  14. public void Open()
  15. {
  16. this._analogTv = R.Ui.CameraGO.GetComponent<AnalogTV>();
  17. this._analogTv.enabled = false;
  18. R.Ui.Pause.Enabled = false;
  19. this._pauseGameObject.SetActive(false);
  20. this._trophyListGameObject.SetActive(true);
  21. }
  22. public void Close()
  23. {
  24. this._analogTv.enabled = true;
  25. R.Ui.Pause.Enabled = true;
  26. this._pauseGameObject.SetActive(true);
  27. this._trophyListGameObject.SetActive(false);
  28. }
  29. [SerializeField]
  30. private GameObject _pauseGameObject;
  31. [SerializeField]
  32. private GameObject _trophyListGameObject;
  33. private AnalogTV _analogTv;
  34. }