Added in game menu
This commit is contained in:
parent
6d96db65a8
commit
07a3822d16
6 changed files with 1296 additions and 9 deletions
File diff suppressed because it is too large
Load diff
|
@ -747,7 +747,7 @@ MonoBehaviour:
|
||||||
m_Calls: []
|
m_Calls: []
|
||||||
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
|
||||||
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
|
||||||
m_Sprite: {fileID: 21300000, guid: f8472d7dc5806fc41a5769d8ebcc1fd7, type: 3}
|
m_Sprite: {fileID: 21300000, guid: 354542dc889a1234cba827ae9b8dd164, type: 3}
|
||||||
m_Type: 0
|
m_Type: 0
|
||||||
m_PreserveAspect: 1
|
m_PreserveAspect: 1
|
||||||
m_FillCenter: 1
|
m_FillCenter: 1
|
||||||
|
@ -904,7 +904,18 @@ MonoBehaviour:
|
||||||
m_TargetGraphic: {fileID: 978696440}
|
m_TargetGraphic: {fileID: 978696440}
|
||||||
m_OnClick:
|
m_OnClick:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls: []
|
m_Calls:
|
||||||
|
- m_Target: {fileID: 1658932720}
|
||||||
|
m_MethodName: ShowInstructions
|
||||||
|
m_Mode: 1
|
||||||
|
m_Arguments:
|
||||||
|
m_ObjectArgument: {fileID: 0}
|
||||||
|
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||||
|
m_IntArgument: 0
|
||||||
|
m_FloatArgument: 0
|
||||||
|
m_StringArgument:
|
||||||
|
m_BoolArgument: 0
|
||||||
|
m_CallState: 2
|
||||||
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||||
Culture=neutral, PublicKeyToken=null
|
Culture=neutral, PublicKeyToken=null
|
||||||
--- !u!114 &978696440
|
--- !u!114 &978696440
|
||||||
|
@ -1076,7 +1087,7 @@ RectTransform:
|
||||||
m_PrefabInternal: {fileID: 0}
|
m_PrefabInternal: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1040623454}
|
m_GameObject: {fileID: 1040623454}
|
||||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
m_LocalPosition: {x: 456, y: -114, z: 0}
|
m_LocalPosition: {x: 476, y: -125, z: 0}
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 2007653778}
|
- {fileID: 2007653778}
|
||||||
|
@ -1085,7 +1096,7 @@ RectTransform:
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 1, y: 0}
|
m_AnchorMin: {x: 1, y: 0}
|
||||||
m_AnchorMax: {x: 1, y: 0}
|
m_AnchorMax: {x: 1, y: 0}
|
||||||
m_AnchoredPosition: {x: -68, y: 49}
|
m_AnchoredPosition: {x: -48, y: 38}
|
||||||
m_SizeDelta: {x: 188.3, y: 54}
|
m_SizeDelta: {x: 188.3, y: 54}
|
||||||
m_Pivot: {x: 1, y: 0}
|
m_Pivot: {x: 1, y: 0}
|
||||||
--- !u!114 &1040623456
|
--- !u!114 &1040623456
|
||||||
|
@ -1128,7 +1139,7 @@ MonoBehaviour:
|
||||||
m_PersistentCalls:
|
m_PersistentCalls:
|
||||||
m_Calls:
|
m_Calls:
|
||||||
- m_Target: {fileID: 1658932720}
|
- m_Target: {fileID: 1658932720}
|
||||||
m_MethodName: ShowInstructions
|
m_MethodName: HideInstructions
|
||||||
m_Mode: 1
|
m_Mode: 1
|
||||||
m_Arguments:
|
m_Arguments:
|
||||||
m_ObjectArgument: {fileID: 0}
|
m_ObjectArgument: {fileID: 0}
|
||||||
|
@ -1752,7 +1763,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!224 &2097291473
|
--- !u!224 &2097291473
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
21
Project Undercover/Assets/Scripts/UI/InGameMenuController.cs
Normal file
21
Project Undercover/Assets/Scripts/UI/InGameMenuController.cs
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
public class InGameMenuController : MonoBehaviour {
|
||||||
|
|
||||||
|
public GameObject inGameMenu;
|
||||||
|
|
||||||
|
void Update () {
|
||||||
|
if (Input.GetKeyDown (KeyCode.Escape ))
|
||||||
|
EscapePressed();
|
||||||
|
}
|
||||||
|
|
||||||
|
void EscapePressed() {
|
||||||
|
inGameMenu.SetActive (true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void Resume() {
|
||||||
|
inGameMenu.SetActive (false);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 19f3028bf9ab23944a33f60235a23e5e
|
||||||
|
timeCreated: 1512059453
|
||||||
|
licenseType: Free
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
Before Width: | Height: | Size: 3 MiB After Width: | Height: | Size: 3.2 MiB |
|
@ -1,6 +1,6 @@
|
||||||
fileFormatVersion: 2
|
fileFormatVersion: 2
|
||||||
guid: f8472d7dc5806fc41a5769d8ebcc1fd7
|
guid: 354542dc889a1234cba827ae9b8dd164
|
||||||
timeCreated: 1512056187
|
timeCreated: 1512059319
|
||||||
licenseType: Free
|
licenseType: Free
|
||||||
TextureImporter:
|
TextureImporter:
|
||||||
fileIDToRecycleName: {}
|
fileIDToRecycleName: {}
|
Reference in a new issue