You've already forked taptap2024_GJ_chidouren
init
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user