ゲームオーバーシーンの作成








ゲームオーバーフロア
using UnityEngine;
using System.Collections;
// ★追加
using UnityEngine.SceneManagement;
public class GameOverFloor : MonoBehaviour {
// ★追加
void OnCollisionEnter(Collision other){
if(other.gameObject.CompareTag("Player")){
SceneManager.LoadScene("GameOver");
}
}
}


【旧版】BallGame(全25回)
他のコースを見る