removed obsolete interfaces for health and damage
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user