Updates the text of the TextGameObject.
TextGameObject reference
The updated text of the TextGameObject
the GameObject reference passed in
Error if not a TextGameObject is passed in
update_text(create_text('Hello world!'), 'Goodbye world!'); Copy
update_text(create_text('Hello world!'), 'Goodbye world!');
Updates the text of the TextGameObject.