Dont tick red when positive damage

This commit is contained in:
SpoodyTheOne 2024-02-04 11:48:46 +01:00
parent e1e2fd9069
commit 89af403895
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ public class HealthComponent : MonoBehaviour, ISquezeDamageReceiver
void Awake() void Awake()
{ {
currentHealth = maxHealth; currentHealth = maxHealth;
OnHealthChange.AddListener((_, _) => showRedTint = true); OnHealthChange.AddListener((prev, nex) => showRedTint = nex<prev);
StartCoroutine(RedTintLoop()); StartCoroutine(RedTintLoop());
} }