Implement health modification on enemy kill; add HealOnKillModifier and update death behavior

This commit is contained in:
2025-07-12 12:57:21 +02:00
parent cb793bcc93
commit c3b1ac9213
22 changed files with 330 additions and 11 deletions

View File

@@ -1,7 +1,10 @@
using JetBrains.Annotations;
using UnityEngine;
namespace Interfaces
{
public interface IDeathBehavior
{
void Die();
void Die([CanBeNull] GameObject killer = null);
}
}

View File

@@ -0,0 +1,9 @@
using UnityEngine;
namespace Interfaces
{
public interface IOnKillEffect
{
void OnKill(GameObject killer, GameObject victim);
}
}

View File

@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 3237e2bd7db84674bd34467854e53928
timeCreated: 1752314256