김다솜

add game intro

This diff is collapsed. Click to expand it.
1 +using System.Collections;
2 +using System.Collections.Generic;
3 +using UnityEngine;
4 +using UnityEngine.SceneManagement;
5 +
6 +public class Title : MonoBehaviour
7 +{
8 + public string SceneToLoad;
9 +
10 + public void LoadGame()
11 + {
12 + SceneManager.LoadScene(SceneToLoad);
13 + }
14 +
15 + void update()
16 + {
17 + Debug.Log("1");
18 + if (Input.GetMouseButtonDown(0))
19 + {
20 + Debug.Log("2");
21 + SceneManager.LoadScene(SceneToLoad);
22 + }
23 + }
24 +}
...@@ -4,5 +4,11 @@ ...@@ -4,5 +4,11 @@
4 EditorBuildSettings: 4 EditorBuildSettings:
5 m_ObjectHideFlags: 0 5 m_ObjectHideFlags: 0
6 serializedVersion: 2 6 serializedVersion: 2
7 - m_Scenes: [] 7 + m_Scenes:
8 + - enabled: 1
9 + path: Assets/Scenes/Intro.unity
10 + guid: 4f091d5869b23d84292067f1da4ad389
11 + - enabled: 1
12 + path: Assets/Scenes/humanoid.unity
13 + guid: c754f8b1d9dd68c4eb77c0549e9494e8
8 m_configObjects: {} 14 m_configObjects: {}
......