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);
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3b0d0c33caa94dbc94a83cf2c7e1cba0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: