18 lines
534 B
C#
18 lines
534 B
C#
using UnityEngine;
|
|
using UnityEngine.SceneManagement;
|
|
|
|
namespace BaseGames.UI
|
|
{
|
|
/// <summary>
|
|
/// 导航栈中一层的记录。<see cref="FocusToRestore"/> 记录压栈前的选中项,
|
|
/// 出栈时据此恢复键盘 / 手柄焦点;<see cref="OwningScene"/> 用于场景卸载时清理本层。
|
|
/// </summary>
|
|
internal sealed class UIStackEntry
|
|
{
|
|
public UIPanelBase Panel;
|
|
public GameObject FocusToRestore;
|
|
public PushMode Mode;
|
|
public Scene OwningScene;
|
|
}
|
|
}
|