タイトルシーンを作成する







ゲームスタートボタン
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// ★この1行を忘れないこと。
using UnityEngine.SceneManagement;
public class GameStart : MonoBehaviour
{
// 先頭に「public」が付いていることを確認する(ポイント)
public void OnStartButtonClicked()
{
SceneManager.LoadScene("Main");
}
}






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






ゲームスタートボタン
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
// ★この1行を忘れないこと。
using UnityEngine.SceneManagement;
public class GameStart : MonoBehaviour
{
// 先頭に「public」が付いていることを確認する(ポイント)
public void OnStartButtonClicked()
{
SceneManager.LoadScene("Main");
}
}






タイトルシーンを作成する