ShortcutkeyDlg.cs 737 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.UI;
  5. using XRTool.Util;
  6. using XRTool.WorldUI;
  7. namespace ShadowStudio.UI
  8. {
  9. [RequireComponent(typeof(WorldDlg))]
  10. public class ShortcutkeyDlg : UnitySingleton<ShortcutkeyDlg>
  11. {
  12. private Button shortcutkey;
  13. // Start is called before the first frame update
  14. void Start()
  15. {
  16. WorldDlg dlg = GetComponent<WorldDlg>();
  17. shortcutkey = dlg.GetBreadthChild<Button>("Shortcutkey");
  18. shortcutkey.onClick.AddListener(ClickOnShortcutkey);
  19. }
  20. private void ClickOnShortcutkey()
  21. {
  22. //ShowViewMgr.Instance.ShowView(1);
  23. }
  24. }
  25. }