AboutUsView.cs 604 B

123456789101112131415161718192021222324
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. /* 界面-关于我们 */
  5. public class AboutUsView : MonoBehaviour, MenuBackInterface
  6. {
  7. void Start()
  8. {
  9. JC.Unity.UI.AdapterUtils.MakeRectTransformFullScreen(this);
  10. PersistenHandler.ins?.menuBackCtr.views.Add(this);
  11. }
  12. void OnDestroy()
  13. {
  14. PersistenHandler.ins?.menuBackCtr.views.Remove(this);
  15. }
  16. public bool OnMenuBack() {
  17. Destroy(gameObject);
  18. return true;
  19. }
  20. public void Back() {
  21. AudioMgr.ins.PlayBtn();
  22. Destroy(this.gameObject);
  23. }
  24. }