With this code:
public class StartButtonScript : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void OnMouseDown () {
Destroy(GameObject.Find("StartButtonText"));
Destroy(GameObject.Find("TitleText"));
(GameObject.Find("Tutorial0")).SetActive(true);
Debug.Log("Entered Game");
}
}
Unity says that there is a NullReferenceException error and it won't activate the 'Tutorial0' 3D text box. From the beginning, the text box is deactivated so I think that this is the problem, however I don't know anyway around it (that wouldn't take a whole bunch of time). Is there a simple fix to this?