com.alicizax.unity.ui.exten.../Runtime/UXComponent/Controller/ControllerStateBase.cs
陈思海 d17eaaaa8b opt
修改命名空间
2025-12-09 20:30:11 +08:00

35 lines
897 B
C#

using System;
using UnityEngine;
namespace AlicizaX.UI
{
public abstract class ControllerStateBase
{
public abstract void Init(UXControllerStateRecorder recorder);
public abstract void Execute(UXControllerStateRecorder recorder, int entryIndex, int selectionIndex);
public abstract bool Valid(UXControllerStateRecorder recorder);
}
[AttributeUsage(AttributeTargets.Class)]
public class ControlerStateNameAttribute : Attribute
{
public string StateName;
public ControlerStateNameAttribute(string stateName)
{
StateName = stateName;
}
}
[AttributeUsage(AttributeTargets.Class)]
public class ControlerStateAttachTypeAttribute : Attribute
{
public bool Repeat;
public ControlerStateAttachTypeAttribute(bool repeat)
{
Repeat = repeat;
}
}
}