Displaying UI with OnMouseOver Coding Error

I am currently using a Displaying UI with OnMouseOver that is shown in use throughout the following XenoSmash tutorial video:

I have been able to use the code successfully with one object, but when used with a second object the code can’t work, it makes the first object fail to have text appear, and the second object takes on the first objects text. The guy who wrote the code and posted the video commented that when using it with multiple objects the following would correct the error:

"public GameObject textDisplay;

Then instead of using GameObject.Find, replace it with this:

myText = textDisplay.GetComponent ();

Now you can manually assign the text to this variable, since it’s a game object as well. You can leave the actual Text type variable empty as it’ll automatically grab the Text component on it if you assign it as a game object. Now all you have to do is change the string value and enter a float value for the fadeTime."

Every time I try to use those instructions to correct the error I screw it up :frowning: can anyone help me? I’m super new with C#

This site has the original code and instructions:

The above snippet you are trying to implement only works if the code is directly atached to the game Object containing the Text UI component.

How would I go about fixing this?