feat: add actor behavior example config

This commit is contained in:
ud18010
2026-07-30 13:19:45 +08:00
parent c12e9ea9d7
commit 1380d5107a
4 changed files with 110 additions and 0 deletions
@@ -0,0 +1,30 @@
{
"type": "fighter",
"version": 1,
"behaviors": [
{
"id": "slash",
"duration": 0.8,
"canBeInterrupted": true,
"input": "DirectionOrTarget",
"timeline": [
{ "time": 0.0, "kind": "Animation", "animation": "slash_01", "duration": 0.8 },
{ "time": 0.12, "kind": "Effect", "prefab": "Assets/Game/Art/Effect/slash.prefab", "duration": 0.5 },
{ "time": 0.25, "kind": "LogicEffect", "effectId": "slash_hit" },
{ "time": 0.32, "kind": "Projectile", "flyObjectId": "blade_wave" }
],
"logicEffects": [
{
"id": "slash_hit",
"shape": "Sector",
"radius": 2.4,
"angle": 90,
"target": "Enemy",
"effects": [
{ "type": "Attribute", "attribute": "hp", "value": -30 }
]
}
]
}
]
}