AboutUsView.cs 536 B

1234567891011121314151617181920212223
  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. PersistenHandler.ins?.menuBackCtr.views.Add(this);
  10. }
  11. void OnDestroy()
  12. {
  13. PersistenHandler.ins?.menuBackCtr.views.Remove(this);
  14. }
  15. public bool OnMenuBack() {
  16. Destroy(gameObject);
  17. return true;
  18. }
  19. public void Back() {
  20. AudioMgr.ins.PlayBtn();
  21. Destroy(this.gameObject);
  22. }
  23. }