I’m following the space shooter tutorial which was written for an older version of Unity. I’m using the new version (5.0). I created a UI.Text object in my Hierarchy. I made a reference to the UI.Text object in my GameController script:
using UnityEngine;
using UnityEngine.UI;
using System.Collections;
public class GameController : MonoBehaviour {
public Text scoreText;
private int score;
...
}
When I try to drag the Text object from the hierarchy, it won’t go into the slot in GameController. Any ideas on why this is and what I should do? I’d prefer to not learn the new GUI yet if possible as I just want to complete the tutorial