55 lines
1.2 KiB
C#
55 lines
1.2 KiB
C#
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace Ether
|
|
{
|
|
public class FrameData
|
|
{
|
|
/// <summary>
|
|
/// 界面名称
|
|
/// </summary>
|
|
public string FrameName;
|
|
/// <summary>
|
|
/// Prefab路径
|
|
/// </summary>
|
|
public string PrefabPath;
|
|
/// <summary>
|
|
/// 界面层级
|
|
/// </summary>
|
|
public FrameTier Tier = FrameTier.Middle;
|
|
/// <summary>
|
|
/// 界面类型
|
|
/// </summary>
|
|
public FrameType FrameType = FrameType.Frame;
|
|
/// <summary>
|
|
/// 界面物体
|
|
/// </summary>
|
|
public GameObject Root;
|
|
|
|
}
|
|
|
|
public class OpenFrameData : DataBase
|
|
{
|
|
public ParentFrameData ParentFrameData { get; private set; } //父界面的信息
|
|
|
|
public void SetParentFrameData(string parentFrameName, Transform parent)
|
|
{
|
|
ParentFrameData = new ParentFrameData()
|
|
{
|
|
parentFrameName = parentFrameName,
|
|
parent = parent
|
|
};
|
|
}
|
|
|
|
}
|
|
|
|
public class ParentFrameData
|
|
{
|
|
public string parentFrameName;
|
|
public Transform parent;
|
|
}
|
|
}
|