複数ステージ②(シーン遷移の設定)



シーン遷移の設定
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameStart : MonoBehaviour
{
public void OnStartButtonClicked()
{
// ★(変更)
SceneManager.LoadScene("Stage1");
}
}


シーン遷移の設定
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Restart : MonoBehaviour
{
public void OnRestartButtonClicked()
{
// ★変更
SceneManager.LoadScene("Stage1");
}
}

【2019版】Danmaku Ⅱ(基礎2/全38回)
他のコースを見る


シーン遷移の設定
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class GameStart : MonoBehaviour
{
public void OnStartButtonClicked()
{
// ★(変更)
SceneManager.LoadScene("Stage1");
}
}


シーン遷移の設定
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class Restart : MonoBehaviour
{
public void OnRestartButtonClicked()
{
// ★変更
SceneManager.LoadScene("Stage1");
}
}

複数ステージ②(シーン遷移の設定)