12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using Studio.Scripts;
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using XRTool.Util;
- using XRTool.WorldUI;
- namespace ShadowStudio.UI
- {
- [RequireComponent(typeof(WorldDlg))]
- public class MenuListDlg : UnitySingleton<MenuListDlg>
- {
-
-
-
- public MenuUI _menuUI
- {
- get;
- set;
- }
- void Start()
- {
- WorldDlg dlg = GetComponent<WorldDlg>();
- _menuUI = dlg.GetBreadthChild<MenuUI>("MenuUI");
-
- HomeProxy.Instance.GetModelList();
- }
-
-
-
- public void Show()
- {
- if (_menuUI != null)
- _menuUI.ShowItemEffect();
- }
-
-
-
- public void Hide()
- {
- if (_menuUI != null)
- _menuUI.HideItemEffect();
- }
-
-
-
- public void UpdateBtn()
- {
- if (_menuUI != null)
- {
- _menuUI.RefreshDteBtn();
- }
- }
-
-
-
- public void LoadData()
- {
- if (_menuUI != null)
- {
- _menuUI.LoadData();
- }
- }
-
-
-
- public void UpdateData()
- {
- if (_menuUI != null)
- {
- _menuUI.UpdateData();
- }
- }
- private void OnEnable()
- {
- Show();
- }
- }
- }
|