I have two scripts. first script has a word variable
public string word="";
I want to to access it from another script, so i use this
GameObject wordGameObject=Selection.activeTransform.gameObject;
Word wordObject=wordGameObject.GetComponent<Word>();
Word.word = EditorGUILayout.TextField ("Text Field", Word.word);
but i get error An object reference is required to access non-static member `Word.word’