質問編集履歴
1
ソースコード記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -39,3 +39,57 @@
|
|
39
39
|
|
40
40
|
|
41
41
|
教えていただけたら幸いです。
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
補足
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
シーン切り替えを行っているソースコードです。
|
50
|
+
|
51
|
+
using System.Collections;
|
52
|
+
|
53
|
+
using System.Collections.Generic;
|
54
|
+
|
55
|
+
using UnityEngine;
|
56
|
+
|
57
|
+
using UnityEngine.SceneManagement;
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
public class SceneManagerSecond : MonoBehaviour
|
62
|
+
|
63
|
+
{
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
// Use this for initialization
|
68
|
+
|
69
|
+
void Start ()
|
70
|
+
|
71
|
+
{
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
// Update is called once per frame
|
80
|
+
|
81
|
+
void Update ()
|
82
|
+
|
83
|
+
{
|
84
|
+
|
85
|
+
if (Input.GetMouseButtonDown(0)) //左クリック
|
86
|
+
|
87
|
+
{
|
88
|
+
|
89
|
+
SceneManager.LoadScene("シーン名"); //シーン切り替え
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
}
|
94
|
+
|
95
|
+
}
|