upgraded the game

This commit is contained in:
Bruno Rybársky 2021-07-22 21:52:18 +02:00
parent 2e017145f1
commit f6035eaa38
19 changed files with 504 additions and 36 deletions

@ -6,6 +6,7 @@ using UnityEngine.SceneManagement;
public class MenuPlay : MonoBehaviour public class MenuPlay : MonoBehaviour
{ {
public LayerMask contactFilter; public LayerMask contactFilter;
public AudioSource sfx;
public MenuMouse mouse; public MenuMouse mouse;
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
@ -18,6 +19,7 @@ public class MenuPlay : MonoBehaviour
{ {
if (Input.GetMouseButtonDown(0)){ if (Input.GetMouseButtonDown(0)){
if(Physics2D.CircleCast(mouse.pos, 1f, Vector2.zero, 0f, contactFilter)){ if(Physics2D.CircleCast(mouse.pos, 1f, Vector2.zero, 0f, contactFilter)){
sfx.Play();
SceneManager.LoadScene("Tutorial"); SceneManager.LoadScene("Tutorial");
} }
} }

@ -188,9 +188,10 @@ MonoBehaviour:
was my first game in Unity, so it was a bit crappy. was my first game in Unity, so it was a bit crappy.
I also want to thank I also want to thank
@Tucan444 for helping me out. @Tucan444 and his very helpful parrot Kio for helping me out.
I hope you enjoyed it. I hope you
enjoyed it.
BRN Systems' BRN Systems'
m_isRightToLeft: 0 m_isRightToLeft: 0
@ -255,7 +256,7 @@ MonoBehaviour:
m_VertexBufferAutoSizeReduction: 0 m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1 m_useMaxVisibleDescender: 1
m_pageToDisplay: 1 m_pageToDisplay: 1
m_margin: {x: -7.812948, y: 0, z: -1.1841106, w: 1.2549968} m_margin: {x: -7.2570496, y: 0, z: -1.1841106, w: 1.2549968}
m_isUsingLegacyAnimationComponent: 0 m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0 m_isVolumetricText: 0
m_hasFontAssetChanged: 0 m_hasFontAssetChanged: 0
@ -399,6 +400,7 @@ GameObject:
- component: {fileID: 698687518} - component: {fileID: 698687518}
- component: {fileID: 698687517} - component: {fileID: 698687517}
- component: {fileID: 698687515} - component: {fileID: 698687515}
- component: {fileID: 698687516}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@ -438,6 +440,18 @@ MonoBehaviour:
m_RequiresDepthTexture: 0 m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0 m_RequiresColorTexture: 0
m_Version: 2 m_Version: 2
--- !u!114 &698687516
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 698687514}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9cf471439c551fd459075afc8510ea03, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!81 &698687517 --- !u!81 &698687517
AudioListener: AudioListener:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -473,7 +487,7 @@ Camera:
far clip plane: 1000 far clip plane: 1000
field of view: 60 field of view: 60
orthographic: 1 orthographic: 1
orthographic size: 8 orthographic size: 9
m_Depth: -1 m_Depth: -1
m_CullingMask: m_CullingMask:
serializedVersion: 2 serializedVersion: 2

@ -6355,6 +6355,7 @@ GameObject:
- component: {fileID: 519420029} - component: {fileID: 519420029}
- component: {fileID: 519420030} - component: {fileID: 519420030}
- component: {fileID: 519420033} - component: {fileID: 519420033}
- component: {fileID: 519420034}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@ -6473,6 +6474,18 @@ MonoBehaviour:
m_RequiresDepthTexture: 0 m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0 m_RequiresColorTexture: 0
m_Version: 2 m_Version: 2
--- !u!114 &519420034
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 519420028}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9cf471439c551fd459075afc8510ea03, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &685738179 --- !u!1 &685738179
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

@ -562,6 +562,7 @@ GameObject:
- component: {fileID: 519420029} - component: {fileID: 519420029}
- component: {fileID: 519420030} - component: {fileID: 519420030}
- component: {fileID: 519420033} - component: {fileID: 519420033}
- component: {fileID: 519420034}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@ -680,6 +681,18 @@ MonoBehaviour:
m_RequiresDepthTexture: 0 m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0 m_RequiresColorTexture: 0
m_Version: 2 m_Version: 2
--- !u!114 &519420034
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 519420028}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9cf471439c551fd459075afc8510ea03, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &614575549 --- !u!1 &614575549
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

@ -1007,6 +1007,7 @@ GameObject:
- component: {fileID: 519420029} - component: {fileID: 519420029}
- component: {fileID: 519420030} - component: {fileID: 519420030}
- component: {fileID: 519420033} - component: {fileID: 519420033}
- component: {fileID: 519420034}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@ -1125,6 +1126,18 @@ MonoBehaviour:
m_RequiresDepthTexture: 0 m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0 m_RequiresColorTexture: 0
m_Version: 2 m_Version: 2
--- !u!114 &519420034
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 519420028}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9cf471439c551fd459075afc8510ea03, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &685738179 --- !u!1 &685738179
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

@ -6228,6 +6228,7 @@ GameObject:
- component: {fileID: 519420029} - component: {fileID: 519420029}
- component: {fileID: 519420030} - component: {fileID: 519420030}
- component: {fileID: 519420033} - component: {fileID: 519420033}
- component: {fileID: 519420034}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@ -6346,6 +6347,18 @@ MonoBehaviour:
m_RequiresDepthTexture: 0 m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0 m_RequiresColorTexture: 0
m_Version: 2 m_Version: 2
--- !u!114 &519420034
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 519420028}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9cf471439c551fd459075afc8510ea03, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &609569528 --- !u!1 &609569528
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

@ -26177,6 +26177,7 @@ GameObject:
- component: {fileID: 519420029} - component: {fileID: 519420029}
- component: {fileID: 519420030} - component: {fileID: 519420030}
- component: {fileID: 519420033} - component: {fileID: 519420033}
- component: {fileID: 519420034}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@ -26295,6 +26296,18 @@ MonoBehaviour:
m_RequiresDepthTexture: 0 m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0 m_RequiresColorTexture: 0
m_Version: 2 m_Version: 2
--- !u!114 &519420034
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 519420028}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9cf471439c551fd459075afc8510ea03, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &545109461 --- !u!1 &545109461
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

@ -41045,6 +41045,7 @@ GameObject:
- component: {fileID: 519420029} - component: {fileID: 519420029}
- component: {fileID: 519420030} - component: {fileID: 519420030}
- component: {fileID: 519420033} - component: {fileID: 519420033}
- component: {fileID: 519420034}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@ -41163,6 +41164,18 @@ MonoBehaviour:
m_RequiresDepthTexture: 0 m_RequiresDepthTexture: 0
m_RequiresColorTexture: 0 m_RequiresColorTexture: 0
m_Version: 2 m_Version: 2
--- !u!114 &519420034
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 519420028}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9cf471439c551fd459075afc8510ea03, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &561967386 --- !u!1 &561967386
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

@ -224,6 +224,7 @@ MonoBehaviour:
contactFilter: contactFilter:
serializedVersion: 2 serializedVersion: 2
m_Bits: 32 m_Bits: 32
sfx: {fileID: 1499575167}
mouse: {fileID: 1949375702} mouse: {fileID: 1949375702}
--- !u!50 &231727551 --- !u!50 &231727551
Rigidbody2D: Rigidbody2D:
@ -341,6 +342,7 @@ GameObject:
- component: {fileID: 581596680} - component: {fileID: 581596680}
- component: {fileID: 581596679} - component: {fileID: 581596679}
- component: {fileID: 581596682} - component: {fileID: 581596682}
- component: {fileID: 581596684}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@ -409,7 +411,9 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -10} m_LocalPosition: {x: 0, y: 0, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: [] m_Children:
- {fileID: 1499575168}
- {fileID: 607124726}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -459,6 +463,145 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
cam: {fileID: 581596680} cam: {fileID: 581596680}
objects: {fileID: 1027899373} objects: {fileID: 1027899373}
--- !u!114 &581596684
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 581596678}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9cf471439c551fd459075afc8510ea03, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &607124725
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 607124726}
- component: {fileID: 607124727}
m_Layer: 0
m_Name: BGMusic
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &607124726
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 607124725}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 581596681}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!82 &607124727
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 607124725}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: 3438974180290ff4fbf2ba1e21c93b6d, type: 3}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 1
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!1 &682611200 --- !u!1 &682611200
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -773,7 +916,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!4 &1027899374 --- !u!4 &1027899374
Transform: Transform:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -962,6 +1105,133 @@ MeshRenderer:
m_SortingLayer: 0 m_SortingLayer: 0
m_SortingOrder: 0 m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0} m_AdditionalVertexStreams: {fileID: 0}
--- !u!1 &1499575166
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1499575168}
- component: {fileID: 1499575167}
m_Layer: 0
m_Name: SFX
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!82 &1499575167
AudioSource:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1499575166}
m_Enabled: 1
serializedVersion: 4
OutputAudioMixerGroup: {fileID: 0}
m_audioClip: {fileID: 8300000, guid: 349c5213efa2f084d875db215eb07475, type: 3}
m_PlayOnAwake: 1
m_Volume: 1
m_Pitch: 1
Loop: 0
Mute: 0
Spatialize: 0
SpatializePostEffects: 0
Priority: 128
DopplerLevel: 1
MinDistance: 1
MaxDistance: 500
Pan2D: 0
rolloffMode: 0
BypassEffects: 0
BypassListenerEffects: 0
BypassReverbZones: 0
rolloffCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 1
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
panLevelCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
spreadCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
reverbZoneMixCustomCurve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
--- !u!4 &1499575168
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1499575166}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 581596681}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1525150946 --- !u!1 &1525150946
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1045,7 +1315,7 @@ GameObject:
- component: {fileID: 1608412036} - component: {fileID: 1608412036}
- component: {fileID: 1608412035} - component: {fileID: 1608412035}
m_Layer: 0 m_Layer: 0
m_Name: menu m_Name: BG
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0

@ -38159,6 +38159,7 @@ GameObject:
- component: {fileID: 1188223022} - component: {fileID: 1188223022}
- component: {fileID: 1188223021} - component: {fileID: 1188223021}
- component: {fileID: 1188223020} - component: {fileID: 1188223020}
- component: {fileID: 1188223025}
m_Layer: 0 m_Layer: 0
m_Name: Main Camera m_Name: Main Camera
m_TagString: MainCamera m_TagString: MainCamera
@ -38277,6 +38278,18 @@ Transform:
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1188223025
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1188223019}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9cf471439c551fd459075afc8510ea03, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!1 &1214149262 --- !u!1 &1214149262
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

21
Assets/Scripts/ESCQuit.cs Normal file

@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ESCQuit : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update ()
{
if(Input.GetKeyDown(KeyCode.Escape) == true)
{
Application.Quit();
}
}
}

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9cf471439c551fd459075afc8510ea03
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

@ -6,7 +6,8 @@ public class MenuZoom : MonoBehaviour
{ {
public Camera cam; public Camera cam;
public GameObject objects; public GameObject objects;
bool firstrun = true; bool flag1 = true;
bool flag2 = false;
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
@ -16,14 +17,22 @@ public class MenuZoom : MonoBehaviour
// Update is called once per frame // Update is called once per frame
void Update() void Update()
{ {
if (firstrun){ if (flag1){
firstrun = false; if(cam.orthographicSize > 1f){
while(cam.fieldOfView > 3f){ cam.orthographicSize -= 0.1f;
cam.fieldOfView -= 0.001f;
} }
objects.SetActive(true); else{
while(cam.fieldOfView < 5f){ flag1 = false;
cam.fieldOfView += 0.001f; flag2 = true;
objects.SetActive(true);
}
}
if(flag2){
if(cam.orthographicSize < 5f){
cam.orthographicSize += 0.06f;
}
else{
flag2 = false;
} }
} }
} }

@ -10,7 +10,7 @@ public class Rotation : MonoBehaviour
public bool static_center = true; public bool static_center = true;
public bool right_rotation = true; public bool right_rotation = true;
public bool flipping = false; public bool flipping = false;
[Range(0.1f, 8)] public float speed = 1; [Range(1f, 180f)] public float speed = 1;
[Range(0, (float)Math.PI * 2)] public float flip_angle = 0; [Range(0, (float)Math.PI * 2)] public float flip_angle = 0;
private float angle; private float angle;

BIN
Assets/Sounds/Music/Menu.mp3 (Stored with Git LFS) Normal file

Binary file not shown.

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 3438974180290ff4fbf2ba1e21c93b6d
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Sounds/SFX/play.wav (Stored with Git LFS) Normal file

Binary file not shown.

@ -0,0 +1,22 @@
fileFormatVersion: 2
guid: 349c5213efa2f084d875db215eb07475
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:

@ -9,32 +9,32 @@ EditorUserSettings:
value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d value: 22424703114646680e0b0227036c6c111b07142f1f2b233e2867083debf42d
flags: 0 flags: 0
RecentlyUsedScenePath-1: RecentlyUsedScenePath-1:
value: 22424703114646680e0b0227036c72151802563f22213229
flags: 0
RecentlyUsedScenePath-2:
value: 22424703114646680e0b0227036c73150012147e623d28393930
flags: 0
RecentlyUsedScenePath-3:
value: 22424703114646680e0b0227036c73150012147f623d28393930
flags: 0
RecentlyUsedScenePath-4:
value: 22424703114646680e0b0227036c73150012147c623d28393930
flags: 0
RecentlyUsedScenePath-5:
value: 22424703114646680e0b0227036c731500121479623d28393930
flags: 0
RecentlyUsedScenePath-6:
value: 22424703114646680e0b0227036c731500121478623d28393930
flags: 0
RecentlyUsedScenePath-7:
value: 22424703114646680e0b0227036c7919181e0b22623d28393930 value: 22424703114646680e0b0227036c7919181e0b22623d28393930
flags: 0 flags: 0
RecentlyUsedScenePath-8: RecentlyUsedScenePath-2:
value: 22424703114646680e0b0227036c73150012147b623d28393930 value: 22424703114646680e0b0227036c73150012147b623d28393930
flags: 0 flags: 0
RecentlyUsedScenePath-9: RecentlyUsedScenePath-3:
value: 22424703114646680e0b0227036c731500121478623d28393930
flags: 0
RecentlyUsedScenePath-4:
value: 22424703114646680e0b0227036c731500121479623d28393930
flags: 0
RecentlyUsedScenePath-5:
value: 22424703114646680e0b0227036c73150012147c623d28393930
flags: 0
RecentlyUsedScenePath-6:
value: 22424703114646680e0b0227036c6b0502180a232d2468252320092a value: 22424703114646680e0b0227036c6b0502180a232d2468252320092a
flags: 0 flags: 0
RecentlyUsedScenePath-7:
value: 22424703114646680e0b0227036c72151802563f22213229
flags: 0
RecentlyUsedScenePath-8:
value: 22424703114646680e0b0227036c73150012147f623d28393930
flags: 0
RecentlyUsedScenePath-9:
value: 22424703114646680e0b0227036c73150012147e623d28393930
flags: 0
UnityRemoteCompression: UnityRemoteCompression:
value: 337f73 value: 337f73
flags: 0 flags: 0