I want to be able to access a variable from one script using a variable in another script. For example, if I have one script that has this variable:
public bool Some_Name;
And in my other script I have this:
private string nameOfThingToGet = "Some_Name";
...
GameObject.Find ("Player").GetComponent <FirstScript> () .nameOfThingToGet = false;
Obviously this wont work, but how would I be able to do something like this?
FirstScriptexpose aDictionary<string, object>instead of using fields? This allows forGameObject.Find ("Player").GetComponent<FirstScript>().dictionary[nameOfThingToGet] = false;