enter image description here I made this class of the players health and set a public int varible for the health
enter image description here When I try to edit the value in another class it does not edit so I added a Debug.Log statement to check if class is null (Sorry I didnt realise that the reference to class and the health inside the class are same it looks messy)
enter image description here Over here it is saying class is null, I searched all over google and youtube for the error and I could not find anything of the class being null is there a possible fix???