1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using ShadowStudio.Model;
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Text;
- using UnityEngine;
- using UnityEngine.UI;
- using XRTool.WorldUI;
- namespace XRTool.UI
- {
- /// <summary>
- /// 滑动菜单列表
- /// </summary>
- public class ScrollMenuDlg : MonoBehaviour
- {
- private XRScrollRect scroll;
- public ScrollConf scrollConf;
- /// <summary>
- /// 选中的选项
- /// </summary>
- public event Action<IteamConf> OnSelectIteam;
- /// <summary>
- ///
- /// </summary>
- private void Start()
- {
- scroll = GetComponent<XRScrollRect>();
- if (scroll && scrollConf)
- {
- scrollConf.InitData(scroll);
- scroll.InitData(scrollConf.iteamConfs.Count, scrollConf.showCount,
- scrollConf.cellSize, scrollConf.cellSpace, scrollConf.iteamPrefab);
- }
- }
- /// <summary>
- /// 资源的下载
- /// </summary>
- /// <param name="artList"></param>
- public void SetData(List<ArtInfo> artList)
- {
- }
- }
- }
|