Observe that the problems text needs to be a toddler from the HUDCanvas, since it is definitely an UI aspect, and we need to appropriately set its localPosition and localScale. In the long run, When the unit health is below zero, the script established the unit as dead, transform its tag and wipe out it. unity source code mass effect Unity2D Part