OnMouseOver function

I am trying to get a price displayed next to the cursor when it is over a game object which can be purchased. Also would be handy if I could have a green colour if it can be bought and a red colour if there is not enough currency. My game is in C sharp language.

If you have a GUI Label, you can set your price on that, and use Camera.ScreenToViewportPoint to set the position of your GUI Label to the position of your mouse.

To change the colour of your object, simply create two materials in your Assets pane, a red one and a green one, and set the objects material programatically based on if it can be bought or not.