// Start is called before the first frame update void Start() { options = GameObject.Find("Options").GetComponent <OptionsShuffle>(); //getting the correct word form OptionsShuffle class right = options.word; Debug.Log(right); }
public void display() //display the image selected { options = GameObject.Find("Options").GetComponent <OptionsShuffle>(); //getting the correct word form OptionsShuffle class string right = options.word; Enable(right); Debug.Log(right); }