36 lines
888 B
C#
36 lines
888 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace QFramework
|
|
{
|
|
public class ResKitUIPanelTester : MonoBehaviour
|
|
{
|
|
|
|
/// <summary>
|
|
/// 页面的名字
|
|
/// </summary>
|
|
public string PanelName;
|
|
|
|
/// <summary>
|
|
/// 层级名字
|
|
/// </summary>
|
|
public UILevel Level;
|
|
|
|
[SerializeField] private List<UIPanelTesterInfo> mOtherPanels;
|
|
|
|
private void Awake()
|
|
{
|
|
ResKit.Init();
|
|
}
|
|
|
|
private IEnumerator Start()
|
|
{
|
|
yield return new WaitForSeconds(0.2f);
|
|
|
|
UIKit.OpenPanel(PanelName, Level);
|
|
|
|
mOtherPanels.ForEach(panelTesterInfo => { UIKit.OpenPanel(panelTesterInfo.PanelName, panelTesterInfo.Level); });
|
|
}
|
|
}
|
|
} |