I assume I first need to create an empty game object, like so:
GameObject ScoreText = new gameobject("score text");
and a text like so:
guitext guitextcomp = scoretext.addcomponent();
this however does not work..:/
using the method above i get expected ";", and if I add the component using a string, then nothing happens.
So, what is wrong?
ps, the casing is a bit off in the example above.