Health
Hello, does anyone know how i can link health between 2 sprites? like if 1 takes damage the other sprite also takes damage and lowers the health by 1.
2 Replies
what did you do so far?
sprites?
are those sprites representing the same entity?
did you intend to post this in the unity discord or smth?
if the sprites represent the same entity, I wouldn't save health info in the sprite itself, but I would link the sprites to the entity in some way, maybe a
HashMap<EntityId, Sprites>