[36464-screenshot+(98).png|36464]This code:
transform.localScale.x = new Vector2 (PlayerHealthGet, 1);
It says cannot convert vector2 to float.
[36464-screenshot+(98).png|36464]This code:
transform.localScale.x = new Vector2 (PlayerHealthGet, 1);
It says cannot convert vector2 to float.
You are trying to assign a Vector2 to a float variable. It won’t work.
Either way, you can’t set x value like this. You need to use the Set(float x, float y, flot z)
method.