convert game playing..
This commit is contained in:
@@ -2310,8 +2310,8 @@ namespace BumpCombat.Tests
|
||||
[Test]
|
||||
public void PrototypeEnemies_UseRequestedCrowdAndNormalCatalog()
|
||||
{
|
||||
string[] crowdNames = { "Bat", "Slime" };
|
||||
foreach (string crowdName in crowdNames)
|
||||
string[] promotedCrowdNames = { "Bat", "Slime" };
|
||||
foreach (string crowdName in promotedCrowdNames)
|
||||
{
|
||||
EnemyDefinition definition =
|
||||
AssetDatabase.LoadAssetAtPath<EnemyDefinition>(
|
||||
@@ -2321,11 +2321,11 @@ namespace BumpCombat.Tests
|
||||
|
||||
Assert.That(definition, Is.Not.Null, crowdName);
|
||||
Assert.That(prefab, Is.Not.Null, crowdName);
|
||||
Assert.That(definition.Role, Is.EqualTo(EnemyRole.Crowd), crowdName);
|
||||
Assert.That(definition.Role, Is.EqualTo(EnemyRole.Normal), crowdName);
|
||||
Assert.That(definition.MaxHealth, Is.GreaterThan(0f), crowdName);
|
||||
Assert.That(prefab.transform.localScale.x, Is.EqualTo(1f), crowdName);
|
||||
Assert.That(prefab.transform.localScale.y, Is.EqualTo(1f), crowdName);
|
||||
Assert.That(prefab.GetComponent<Collider2D>().isTrigger, Is.True, crowdName);
|
||||
Assert.That(prefab.GetComponent<Collider2D>().isTrigger, Is.False, crowdName);
|
||||
}
|
||||
|
||||
string[] normalNames = { "Skeleton", "Necrofire", "SkeletonArcher" };
|
||||
|
||||
Reference in New Issue
Block a user