fix: load lobby characters from config

This commit is contained in:
ud18010
2026-07-27 12:19:12 +08:00
parent ba6595217b
commit 3200235537
3 changed files with 116 additions and 28 deletions
@@ -41,6 +41,12 @@ public sealed class CharacterConfigDataTests
Assert.That(item.prefabPath, Is.EqualTo("Assets/Game/Art/Actor/Prefab/cityboy_sk.prefab"));
}
[Test]
public void GetPrefabPathReturnsConfiguredPathForCityboy()
{
Assert.That(CreateConfig().GetPrefabPath(5), Is.EqualTo("Assets/Game/Art/Actor/Prefab/cityboy_sk.prefab"));
}
[Test]
public void GetByFigureUsesDefaultForAnInvalidIndex()
{