https://mega.nz/file/zUY0HYbL#ahwM_uGlp7-5iMLFjR1uaj6hgeVpjyhB3SCLe9xAt88 this is my project. I have an issue with the heatlhbar mirroring. I attached heatlhbar to the main camera and my character. When character flips, the healthbar flips too. Character flipping I based on the scale of the player - when player is facing left, the scale is less than zero.
I tried to write some flipping script, but it did not work - when I change the x value, healthbar disapears - the code is in this situation bad, it does not work, because how I mentioned before, when I change the x scale value, it disapers, so I cannot do it using c#. I need to do it somehow.
Thank you so much for your help.