Dont tick red when positive damage
This commit is contained in:
parent
e1e2fd9069
commit
89af403895
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue