Ошибка:
Assets\Scripts\Hero.cs(88,39): error CS1061: 'Collider2D[]' does not contain a definition for 'Lenght' and no accessible extension method 'Lenght' accepting a first argument of type 'Collider2D[]' could be found (are you missing a using directive or an assembly reference?)
Часть кода:
private void OnAttack()
{
Collider2D[] colliders = Physics2D.OverlapCircleAll(attackPos.position, attackRange, enemy);
for (int i = 0; i < colliders.Lenght; i++)
{
colliders[i].GetComponent<Entity>().GetDamage();
}
}