RPG Tutorial: Health as Stat class instead of int help

Updated on July 17, 2018 in [A] Brackeys Courses
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on July 17, 2018

I have made my maxHealth and currentHealth as their own Stat classes instead of int like Brackeys did in the tutorial. However, during my Awake method I get a “NullReferenceException: Object reference not set to an instance of an object” 




In my inspector I have the maxHealth baseValue set to 10, but currentHealth is not being set to 10 during the Awake method because of the error above. Not sure whats going on and need some help, thank you 🙂

  • Liked by