IndieGame/client/Assets/Ether/Scripts/Module/UI/FrameData.cs

55 lines
1.2 KiB
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00

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; } //父界面的信息
2024-10-11 10:12:15 +08:00
public void SetParentFrameData(string parentFrameName, Transform parent)
2024-10-11 10:12:15 +08:00
{
ParentFrameData = new ParentFrameData()
2024-10-11 10:12:15 +08:00
{
parentFrameName = parentFrameName,
parent = parent
};
2024-10-11 10:12:15 +08:00
}
}
2024-10-11 10:12:15 +08:00
public class ParentFrameData
{
public string parentFrameName;
public Transform parent;
2024-10-11 10:12:15 +08:00
}
}