Hello! I’ve been googling a lot lately because I am hoping for a more efficient/easy way to do the following:
I have 2 scripts, one is for triggers, another is on a gameobject with a value i wanna change (Lets call them TG and GV respectively)
I want it so that I can define a GV’s variable (bool, int, float.) to change in the inspector of TG, and not have to manually type out what gameobject to find, the script name, etc, and I was hoping I could define both in the inspector (like one can do with gameobjects and various other elements for ease of use) and then also get the variable of said object’s script and be able to change it.
I’ve experimented with Getcomponent(stringInput) but I don’t seem to be able to do the variable part.
Is there an easier way for this or will I just have to do things very manually?