This commit is contained in:
kimrdd 2024-02-04 11:49:52 +01:00
commit bc988ab60e
1 changed files with 1 additions and 1 deletions

View File

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