回答編集履歴
2
動作しないスクリプト修正
test
CHANGED
@@ -4,13 +4,8 @@
|
|
4
4
|
|
5
5
|
public class SceneController : MonoBehaviour
|
6
6
|
{
|
7
|
-
public
|
7
|
+
public void SwitchScene(string sceneName)
|
8
8
|
{
|
9
|
-
/* シーン遷移演出
|
10
|
-
例.
|
11
|
-
暗転(黒いPanel出現アニメーション)
|
12
|
-
*/
|
13
|
-
yield return new WaitForSeconds (1.0f);
|
14
9
|
SceneManager.LoadScene(sceneName);
|
15
10
|
}
|
16
11
|
|
1
スクリプトにコメント追加
test
CHANGED
@@ -4,8 +4,13 @@
|
|
4
4
|
|
5
5
|
public class SceneController : MonoBehaviour
|
6
6
|
{
|
7
|
-
public
|
7
|
+
public IEnumerator SwitchScene(string sceneName)
|
8
8
|
{
|
9
|
+
/* シーン遷移演出
|
10
|
+
例.
|
11
|
+
暗転(黒いPanel出現アニメーション)
|
12
|
+
*/
|
13
|
+
yield return new WaitForSeconds (1.0f);
|
9
14
|
SceneManager.LoadScene(sceneName);
|
10
15
|
}
|
11
16
|
|