In this script in using the pos of the player as score and im having some errors, anyone know what to do?
My script:
http://pastie.org/10827954
ERRORS:
Line 7-10:
The type or namespace name `Text’ could not be found. Are you missing a using directive or an assembly reference?
PLZ HELP ASAP
line 8 misses a semicolon, line 10 misses a variable name and semicolon.
Thanks, I have new problems now, i changed the pastebin
public Text Player
missing the semicolon - that’s why the next line says unexpected public.
Heya, the Text type is located under the ‘UnityEditor.UI’ namespace. So, at the top of your script, write ‘using UnityEditor.UI;’
This isn’t an editor script, so he should use “UnityEngine.UI”.
Ah woops, I always make that mistake