I made a hunger system and in general it works, but when I eat food a secondary bar appears, and the main one then falls. the same with health, when the main food bar runs out, the main health bar also falls, and the secondary one rises.
the code with the inscription about death is written 2 times.