feat: add fighter quantao01 behavior config
This commit is contained in:
@@ -25,6 +25,17 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "quantao01",
|
||||||
|
"duration": 1.0,
|
||||||
|
"canBeInterrupted": true,
|
||||||
|
"input": "DirectionOrTarget",
|
||||||
|
"timeline": [
|
||||||
|
{ "time": 0.0, "kind": "Animation", "animation": "Assets/Game/Art/Actor/Controller/Class/140/140_skill01a_qt.FBX", "duration": 1.0 },
|
||||||
|
{ "time": 0.0, "kind": "Effect", "prefab": "Assets/Game/Art/Effect/Prefab/skill/9110004_zhujue_quantao_skill01a.prefab", "duration": 1.0 }
|
||||||
|
],
|
||||||
|
"logicEffects": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -117,6 +117,14 @@ namespace XWorld.Framework.Tests.ActorBehavior
|
|||||||
System.IO.File.ReadAllText(System.IO.Path.Combine(dir, "fighter_buff.json")));
|
System.IO.File.ReadAllText(System.IO.Path.Combine(dir, "fighter_buff.json")));
|
||||||
|
|
||||||
Assert.True(catalog.Behaviors.ContainsKey("slash"));
|
Assert.True(catalog.Behaviors.ContainsKey("slash"));
|
||||||
|
Assert.True(catalog.Behaviors.ContainsKey("quantao01"));
|
||||||
|
BehaviorSpec quantao = catalog.Behaviors["quantao01"];
|
||||||
|
Assert.Contains(quantao.Timeline, e =>
|
||||||
|
e.Kind == TimelineEntryKind.Animation
|
||||||
|
&& e.Animation == "Assets/Game/Art/Actor/Controller/Class/140/140_skill01a_qt.FBX");
|
||||||
|
Assert.Contains(quantao.Timeline, e =>
|
||||||
|
e.Kind == TimelineEntryKind.Effect
|
||||||
|
&& e.Prefab == "Assets/Game/Art/Effect/Prefab/skill/9110004_zhujue_quantao_skill01a.prefab");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string FindRepoRoot()
|
private static string FindRepoRoot()
|
||||||
|
|||||||
Reference in New Issue
Block a user