今Unity公式にあったRoll-a-Ballを作ってみてるんですけど、
現在のシーンの取得とかで使うSceneManagerって
Unityのバージョン5.3 → 5.5.2で書き方変わってますか?
the name "SceneManager" not exist in the current context
とエラーが出るのですが…


public class DangerWall : MonoBehaviour
{
// オブジェクトと接触した時に呼ばれるコールバック
void OnCollisionEnter (Collision hit)
{
// 接触したオブジェクトのタグが"Player"の場合
if (hit.gameObject.CompareTag ("Player")) {

// 現在のシーン番号を取得
int sceneIndex = SceneManager.GetActiveScene().buildIndex;

// 現在のシーンを再読込する
SceneManager.LoadScene(sceneIndex);
}
}
}