Compare commits

..

No commits in common. "813d034fc50bd7359586deea2ba305405a794bde" and "4005878930047e686a5efbd876ebee4cb3d97442" have entirely different histories.

2 changed files with 1 additions and 12 deletions

View File

@ -1,5 +1,4 @@
using UnityEngine;
using UnityEngine.Events;
namespace GameDev.CoreSystems
{
@ -15,8 +14,6 @@ namespace GameDev.CoreSystems
[field: Header("Modifiers")]
[field: SerializeField] public bool IsInvulnerable { get; private set; }
public UnityEvent DeathEvent;
private void OnEnable()
{
_activeDamageableRuntimeSet.Add(this);
@ -38,7 +35,6 @@ namespace GameDev.CoreSystems
if (CurrentHealth >= 0) return;
print($"{transform.parent.parent.name} died");
DeathEvent.Invoke();
}
#endregion

View File

@ -19,14 +19,7 @@ namespace GameDev.CoreSystems
private void OnEnable()
{
if (_activeTargetableRuntimeSet != null)
{
_activeTargetableRuntimeSet.Add(this);
}
else
{
Debug.LogError("TargetableRuntimeSet does not exist");
}
_activeTargetableRuntimeSet.Add(this);
}
private void OnDisable()