This commit is contained in:
RochesterX
2025-03-28 13:00:37 -04:00
parent 4c22943273
commit 451bf78249
13 changed files with 1767 additions and 1287 deletions

View File

@@ -21,7 +21,7 @@ public class LifeDisplayManager : MonoBehaviour
for (int i = 0; i < player.GetComponent<Damageable>().lives; i++)
{
GameObject life = Instantiate(lifePrefab, parent);
life.GetComponentInChildren<Image>().color = GameManager.playerColors[GameManager.players.IndexOf(player)];
life.transform.Find("LIFE").GetComponent<Image>().color = GameManager.playerColors[GameManager.players.IndexOf(player)];
lives.Add(life);
}
lifeDisplays.Add(player.GetComponent<Damageable>(), lives);