Update layers for GameObjects and add EnemyDeathBehavior class

This commit is contained in:
2025-07-11 22:23:42 +02:00
parent 355add5a33
commit 7640c59e43
5 changed files with 262 additions and 10 deletions

View File

@@ -20,8 +20,14 @@ namespace Weapons
if (hit.gameObject == character.gameObject) continue;
var damage = GetFinalDamage();
health.TakeDamage(damage);
health?.TakeDamage(damage);
}
}
private void OnDrawGizmosSelected()
{
Gizmos.color = Color.red;
Gizmos.DrawWireSphere(transform.position, GetFinalRange());
}
}
}