-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGsStateMachineData.cs
More file actions
45 lines (39 loc) · 1.01 KB
/
Copy pathGsStateMachineData.cs
File metadata and controls
45 lines (39 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
[System.Serializable]
public class StateEntity
{
[Tooltip("State component itself.")]
public GsState State;
[Tooltip("List of transition rules leading away from this state.")]
public GsStateTransition[] Transitions;
}
public enum ParamType
{
ParamType_Float = 1,
ParamType_Int = 3,
ParamType_Bool = 4,
ParamType_Trigger = 9,
};
[System.Serializable]
public class Parameter
{
public Parameter(ParamType paramType)
{
this.paramType = paramType;
}
public string name;
public ParamType paramType;
public bool boolValue;
public float floatValue;
public int intValue;
}
public class GsStateMachineData : ScriptableObject
{
public StateEntity[] States;
public string DefaultStateName;
public GsStateTransition[] AnyStateTransitions;
//public Dictionary<string, Parameter> Parameters;
public Parameter[] Parameters;
}