プレーヤーのステータス⑥(リスタートボタンの作成)



リスタートボタン
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// ★追加
using UnityEngine.SceneManagement;
public class Restart : MonoBehaviour
{
// 文頭に「public」を付ける(重要ポイント)
public void OnRestartButtonClicked()
{
SceneManager.LoadScene("Main");
}
}


【2021版】Danmaku(基礎/全55回)
他のコースを見る