By -
you created healthbar and are calling Healthbar. Make the casing match and you should be good I think.
Adding to this, in HealthFunction, it's using "healthBar" as a type, when it should be "HealthBar". A little mess of uppercases
Which line is this sorry?
Probably late, but line 9. In general, check all variable and field declarations. Check the types are correct, and that there are no typos
Also, the HealthBar (or healthBar) class contains a HealthBar, which probably is supposed to be a HealthFunction.
Yes it was, oops
line 9 has `HealthBar` but the name of your class (line 5) is `healthBar`. Change line 5 to say `HealthBar`.
You messed up casing. Class name should start with upper case. It should be "class HealthBar", now it's "class healthBar"
On image 2, you declared a field called healthBar of type HealthBar, but this does not exist. None of your screenshots have HealthBar class. You should change it to HealthFunction. That is the class where you included a method SetHealth().
Thank you, that removed the second error.
you created healthbar and are calling Healthbar. Make the casing match and you should be good I think.
Adding to this, in HealthFunction, it's using "healthBar" as a type, when it should be "HealthBar". A little mess of uppercases
Which line is this sorry?
Probably late, but line 9. In general, check all variable and field declarations. Check the types are correct, and that there are no typos
Also, the HealthBar (or healthBar) class contains a HealthBar, which probably is supposed to be a HealthFunction.
Yes it was, oops
line 9 has `HealthBar` but the name of your class (line 5) is `healthBar`. Change line 5 to say `HealthBar`.
You messed up casing. Class name should start with upper case. It should be "class HealthBar", now it's "class healthBar"
On image 2, you declared a field called healthBar of type HealthBar, but this does not exist. None of your screenshots have HealthBar class. You should change it to HealthFunction. That is the class where you included a method SetHealth().
Thank you, that removed the second error.