Hello I'm trying to compare my two UI Text but somehow it wont compare with each other
if (WordMatch.text == WordGenerator.text)
{
Debug.Log ("Hello");
}
Here is my code for comparing the two UI Text.
TextAsset wordText = Resources.Load<TextAsset> ("Words");
name = wordText.text.Split ("\n" [0]);
WordGenerator.text = name [Random.Range (0, name.Length)];
And here is the code where I get the value of my "WordGenerator"
Thank you for your time :).