Commit f8b91bf3 authored by 16이상민's avatar 16이상민

Add feature: go to scene "SetSelect" when type escape key

parent 84f0cd39
......@@ -1523,6 +1523,7 @@ GameObject:
- component: {fileID: 750753108}
- component: {fileID: 750753109}
- component: {fileID: 750753104}
- component: {fileID: 750753106}
m_Layer: 5
m_Name: InGameManagers
m_TagString: Untagged
......@@ -1570,6 +1571,17 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 6e697643158480b4ba850d906eac1bc2, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &750753106
MonoBehaviour:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_GameObject: {fileID: 750753102}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: b74d6acc8a48e6f44af437ab64e0cf88, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &750753107
MonoBehaviour:
m_ObjectHideFlags: 0
......
......@@ -4,10 +4,10 @@ public class EndGame : MonoBehaviour
{
void Update ()
{
if(Input.GetKeyDown(KeyCode.P))
if(Input.GetKeyDown(KeyCode.Escape))
{
Destroy(this);
AllSceneManager.SceneTransition("Result");
AllSceneManager.SceneTransition("SetSelect");
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment