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()
|
||||
{
|
||||
currentHealth = maxHealth;
|
||||
OnHealthChange.AddListener((_, _) => showRedTint = true);
|
||||
OnHealthChange.AddListener((prev, nex) => showRedTint = nex<prev);
|
||||
StartCoroutine(RedTintLoop());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue