Health Display broken

When I updated the character classes through the YAML file my health displays stopped working. My arrays seem to be working fine. Cant figure out whats going on. Any ideas?
image
image

My best guess is that one or more values isn’t indented properly. While the Player health may look correct in the inspector, it may be another class or attribute that contains an error. This could cause the method to create the lookup dictionary to fail.

Are there any error messages in the console when you play?

nan typical division by zero error.

I watched the video again and Sam CLEARLY states he’s gonna fix it in the next video… I have failed Sensei Sam… I apologize.

Privacy & Terms