com.alicizax.unity.ui.exten.../Runtime/UXComponent/Controller/ControllerStateBase.cs

37 lines
956 B
C#
Raw Normal View History

2025-12-01 16:44:19 +08:00
// Assets/Scripts/AlicizaX/UI/IControllerState.cs
using System;
using UnityEngine;
namespace AlicizaX.UI.Runtime
{
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;
}
}
}