This commit is contained in:
2024-10-16 00:03:41 +08:00
commit 897058435c
5033 changed files with 1009728 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
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
}
}