Compare commits

...

2 Commits

Author SHA1 Message Date
SpoodyTheOne f320603800 Merge remote-tracking branch 'origin/main' 2024-02-04 11:48:50 +01:00
SpoodyTheOne 89af403895 Dont tick red when positive damage 2024-02-04 11:48:46 +01:00
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());
}