removed obsolete interfaces for health and damage
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 27s
Create tag and build when new code gets to main / Export (push) Successful in 5m25s

This commit is contained in:
2026-05-05 11:51:35 +02:00
parent 33f55d04f3
commit 68e36742af
41 changed files with 37 additions and 703 deletions

View File

@@ -82,12 +82,11 @@ public partial class MainSceneTemplate : Node3D, IProvide<InventoryManager>, IPr
public void KillEnemy(Node3D body)
{
if (body is not (IKillable killable and IHealthable healthable))
if (body is not IKillable killable)
{
body.QueueFree();
// body.QueueFree();
return;
}
killable.Kill(healthable);
killable.Kill();
}
}