Assets/Scripts/Menu/gameOverScoreDisplay.cs(6,9): error CS0246: The type or namespace name `Text’ could not be found. Are you missing a using directive or an assembly reference?
What should I do to use ‘Text’ type in my scripts? I saw the same part of script in the official
Unity video (1)… Yes, I’ve got the newest Unity update (4.6).
If you’re having trouble using JS, try the following:
// at the top of your code where you declare variables
var score: UnityEngine.UI.Text;
// no need to do anything inside Start() unless you would like to set an initial value