what I want to do, is include a player stats menu with it. (I’m just gonna have health for now, I don’t actually have any other stats set up yet.)
now, for my health script, I used C#.
I want to know if there is an easy way to referance this script in my inventory script. is that possible? because what I first used was this bit in the start function
HP_Script = GetComponent(PlayerHealth);
and then I had a series of variable referencing HP_Script to set up the GUI. but it gave me an error saying that it couldn’t find PlayerHealth. I tried going into the inspector and adding the script to the HP_Script target manually, but it doesn’t let me.
any help would be greatly appriciated