
error CS0246: The type or namespace name ‘Text’ could not be found (are you missing a using directive or an assembly reference?)などとエラーが出る場合はだいたい一番上のusingの書き忘れ。
その他のUnityに関する記事は【Unity】サイト内Tips記事リンクまとめにまとめてある。
対処法
スクリプトの一番上のusing 〇〇を追加するだけ。
//スクリプトでテキストを扱っている場合
using UnityEngine.UI;
//スクリプトでシーンの切り替えを行っている場合
using UnityEngine.SceneManagement;