You've already forked taptap2024_GJ_chidouren
48 lines
719 B
C#
48 lines
719 B
C#
using System;
|
|
|
|
namespace XFFSM
|
|
{
|
|
|
|
public enum ParameterType {
|
|
Float = 0,
|
|
Int,
|
|
Bool,
|
|
Trigger
|
|
}
|
|
|
|
[System.Serializable]
|
|
public class FSMParameterData
|
|
{
|
|
#region 字段
|
|
public string name;
|
|
|
|
public float value;
|
|
|
|
public ParameterType parameterType;
|
|
|
|
public Action onValueChange;
|
|
#endregion
|
|
|
|
#region 属性
|
|
|
|
public float Value {
|
|
get { return value; }
|
|
set {
|
|
|
|
if (this.value == value) {
|
|
return;
|
|
}
|
|
|
|
this.value = value;
|
|
onValueChange?.Invoke();
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|