fix: bind fighter animator controller in lobby

This commit is contained in:
ud18010
2026-07-30 17:15:09 +08:00
parent e9efa8a567
commit d3c4bba5b2
5 changed files with 178 additions and 1 deletions
@@ -0,0 +1,19 @@
using NUnit.Framework;
using XGame.ActorBehavior;
public sealed class ActorBehaviorAnimatorControllerPathTests
{
[Test]
public void GetControllerPath_Fighter_ReturnsGeneratedFighterController()
{
Assert.That(
ActorBehaviorAnimatorControllerPaths.GetControllerPath("fighter"),
Is.EqualTo("Assets/Game/Art/Actor/Controller/fighter.controller"));
}
[Test]
public void GetControllerPath_UnknownType_ReturnsNull()
{
Assert.That(ActorBehaviorAnimatorControllerPaths.GetControllerPath("unknown"), Is.Null);
}
}