How do I use the UI components in Scripts?

I seem to have an error for the UI as I am trying to access the text compoenent for the new UI for 4.6 beta it says am i missing a directive or assembly reference my code is:
using UnityEngine;
using System.Collections;

public class ScoreManager : MonoBehaviour 
{
	public static int score;
	Text text;

	void Awake ()
	{
		text =GetComponent <Text> ();
		score = 0;

	}

	void Update ()
	{
		text.text = "Score: " + score;
	}
}

using UnityEngine.UI;