Compare commits
2 Commits
b228433eaa
...
f320603800
Author | SHA1 | Date |
---|---|---|
SpoodyTheOne | f320603800 | |
SpoodyTheOne | 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