101 lines
2.4 KiB
JSON
101 lines
2.4 KiB
JSON
{
|
|
"defaultState": "idle",
|
|
"anyState": {
|
|
"transitions": [
|
|
{
|
|
"toState": "act1",
|
|
"hasExitTime": false,
|
|
"conditions": [
|
|
{
|
|
"param": "act1",
|
|
"value": 0,
|
|
"logic": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"states": [
|
|
{
|
|
"position": [
|
|
-300,
|
|
-120
|
|
],
|
|
"upStateMachine": "BaseLayer",
|
|
"state": "idle",
|
|
"motion": "idle",
|
|
"speed": 1,
|
|
"multiplier": "",
|
|
"loop": true,
|
|
"transitions": [
|
|
{
|
|
"toState": "move",
|
|
"hasExitTime": false,
|
|
"conditions": [
|
|
{
|
|
"param": "Speed",
|
|
"value": 1,
|
|
"logic": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"position": [
|
|
150,
|
|
-120
|
|
],
|
|
"upStateMachine": "BaseLayer",
|
|
"state": "move",
|
|
"motion": "Run",
|
|
"speed": 1,
|
|
"multiplier": "",
|
|
"loop": true,
|
|
"transitions": [
|
|
{
|
|
"toState": "idle",
|
|
"hasExitTime": false,
|
|
"conditions": [
|
|
{
|
|
"param": "Speed",
|
|
"value": 0,
|
|
"logic": 0
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"position": [
|
|
-300,
|
|
90
|
|
],
|
|
"upStateMachine": "BaseLayer",
|
|
"state": "act1",
|
|
"motion": "act1",
|
|
"speed": 1,
|
|
"multiplier": "",
|
|
"loop": false,
|
|
"transitions": [
|
|
{
|
|
"toState": "idle",
|
|
"hasExitTime": true,
|
|
"conditions": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"param": "Speed",
|
|
"type": 2,
|
|
"init": 0
|
|
},
|
|
{
|
|
"param": "act1",
|
|
"type": 3,
|
|
"init": 0
|
|
}
|
|
]
|
|
} |