trying to use a public int in a separate script,

i am trying to code a health pack, and i want to make it so i set the value of health in my “consumables” script and then get that value to use in my “characterstats” script. but i am unsure on how to do that. right now my health pack works with a public int in my “characterstats” script. but that isnt what i want150548-d46368c80a67c35caf91c7d220a031c0.png


You are referencing CharacterStats in your consumable, so you know how to use referenced items. Just reference the consumable script the exact same way in your characterstats script.