Commit 66897df0 authored by Markus Schlösser's avatar Markus Schlösser

Added return to main menu

parent de45fa4e
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine;
using UnityEngine.SceneManagement;
public class ReturnToMainMenu : MonoBehaviour {
[SerializeField] [ScenePath] private string scene;
[SerializeField] private KeyCode key;
private void Update() {
if (Input.GetKeyDown(KeyCode.Escape)) {
if (Input.GetKeyDown(key)) {
SceneManager.LoadScene(scene);
}
}
......
......@@ -44,3 +44,4 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
scene: Assets/_Game/MainMenu/MainMenu.unity
key: 27
......@@ -300,7 +300,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 3
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &242930044
GameObject:
......@@ -366,7 +366,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 9
m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &365688609
GameObject:
......@@ -559,7 +559,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &403186132
GameObject:
......@@ -607,7 +607,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 2
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &786774116
GameObject:
......@@ -702,13 +702,82 @@ RectTransform:
- {fileID: 1154291809}
- {fileID: 871611533}
m_Father: {fileID: 0}
m_RootOrder: 8
m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!1001 &839042962
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 7974195246117068452, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_Name
value: Return to Main Menu
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 51d7f77f62fe8f3418a499f55d5d5b6a, type: 3}
--- !u!1 &871611532
GameObject:
m_ObjectHideFlags: 0
......@@ -1197,7 +1266,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 5
m_RootOrder: 6
m_LocalEulerAnglesHint: {x: 34.172, y: -59.767002, z: -0.476}
--- !u!1 &1645363903
GameObject:
......@@ -1342,11 +1411,11 @@ MonoBehaviour:
breakBeforeColorGrading: 0
m_BeforeTransparentBundles: []
m_BeforeStackBundles:
- assemblyQualifiedName: Scanlines, Assembly-CSharp, Version=0.0.0.0, Culture=neutral,
- assemblyQualifiedName: Scanlines, Supergame.PostProcessing, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null
m_AfterStackBundles:
- assemblyQualifiedName: CrtDistortion, Assembly-CSharp, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null
- assemblyQualifiedName: CrtDistortion, Supergame.PostProcessing, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!1183024399 &1719469200 stripped
LookAtConstraint:
m_CorrespondingSourceObject: {fileID: 2104218439837813088, guid: 0fc09e6a9e6578e4cacd0aa3c0b2e2da,
......@@ -1365,6 +1434,11 @@ PrefabInstance:
propertyPath: m_Name
value: Cannon
objectReference: {fileID: 0}
- target: {fileID: 2027729654027858737, guid: 0fc09e6a9e6578e4cacd0aa3c0b2e2da,
type: 3}
propertyPath: pierce
value: 2
objectReference: {fileID: 0}
- target: {fileID: 4008350759416676906, guid: 0fc09e6a9e6578e4cacd0aa3c0b2e2da,
type: 3}
propertyPath: m_LocalPosition.x
......@@ -1403,7 +1477,7 @@ PrefabInstance:
- target: {fileID: 4008350759416676906, guid: 0fc09e6a9e6578e4cacd0aa3c0b2e2da,
type: 3}
propertyPath: m_RootOrder
value: 7
value: 8
objectReference: {fileID: 0}
- target: {fileID: 4008350759416676906, guid: 0fc09e6a9e6578e4cacd0aa3c0b2e2da,
type: 3}
......@@ -1430,11 +1504,6 @@ PrefabInstance:
propertyPath: m_LocalScale.z
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2027729654027858737, guid: 0fc09e6a9e6578e4cacd0aa3c0b2e2da,
type: 3}
propertyPath: pierce
value: 2
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: 8989201962738053819, guid: 0fc09e6a9e6578e4cacd0aa3c0b2e2da, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 0fc09e6a9e6578e4cacd0aa3c0b2e2da, type: 3}
......@@ -1488,7 +1557,7 @@ PrefabInstance:
- target: {fileID: 5462054124401547112, guid: cf14fdd0034610d4389779e64b8989d1,
type: 3}
propertyPath: m_RootOrder
value: 4
value: 5
objectReference: {fileID: 0}
- target: {fileID: 5462054124401547112, guid: cf14fdd0034610d4389779e64b8989d1,
type: 3}
......@@ -1557,7 +1626,7 @@ PrefabInstance:
- target: {fileID: 2319069527203336542, guid: 7e1a89dc9d401564ea26a2dcd47e48e1,
type: 3}
propertyPath: m_RootOrder
value: 11
value: 12
objectReference: {fileID: 0}
- target: {fileID: 2319069527203336542, guid: 7e1a89dc9d401564ea26a2dcd47e48e1,
type: 3}
......@@ -1671,7 +1740,7 @@ Transform:
m_LocalScale: {x: 200, y: 1, z: 20}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 6
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &4595759605546925678
PrefabInstance:
......@@ -1723,7 +1792,7 @@ PrefabInstance:
- target: {fileID: 2319069527203336542, guid: 7e1a89dc9d401564ea26a2dcd47e48e1,
type: 3}
propertyPath: m_RootOrder
value: 10
value: 11
objectReference: {fileID: 0}
- target: {fileID: 2319069527203336542, guid: 7e1a89dc9d401564ea26a2dcd47e48e1,
type: 3}
......
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