After not being able to find a way to display messages in a text box (for things such as characters talking and messages displaying on screen), I decided to write my own script to do this. The code I have at the moment is below:
I have the MessageSystem attached to an empty gameobject in the scene, and I get other scripts to call the MessagesSystem via Get Component.
I can get the MessageSystem to receive the message (in the DisplayMessage function) but Update and OnGUI never seem to get called, and thus the GUI Box never appears.
My best guess is that you have the script disabled (which would let you call the functions from other scripts, but OnGUI and Update wouldn't fire).
The script itself looks ok
answered Jul 22 '10 at 11:51 AM