ゲームオーバーの シーン名を入力だ。 using Unity Engine; using System.Collections; public class gameover : MonoBehaviour { //Use this for initialization void Start(){ } //Update is called once per frame void Update(){ } void OnTriggerEnter(Collider collider){ if (collider.gameObject.tag == "Enemy") { Application.LoadLevel("gameover"); } } }