ok so this should be the way to go
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace Movementtests.interfaces;
|
||||
|
||||
public interface IHealthable
|
||||
{
|
||||
void ReduceHealth(float amount);
|
||||
event Action<IHealthable, float> HealthChanged;
|
||||
event Action<IHealthable> HealthDepleted;
|
||||
|
||||
void ReduceHealth(IDamageable source, float amount);
|
||||
}
|
||||
Reference in New Issue
Block a user