From c826514a1e57982bb6ee69518086e21851077a94 Mon Sep 17 00:00:00 2001 From: qoralstmd6825 Date: Tue, 10 Feb 2026 20:03:29 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=B4=EB=8D=94=20=EC=A0=95=EB=A6=AC=20?= =?UTF-8?q?=EB=B0=91=20Pause=20UI=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Resources/{Images => }/Animation.meta | 0 .../Replay.meta => Animation/Button.meta} | 2 +- .../Button}/ExitButton.controller | 0 .../Button}/ExitButton.controller.meta | 0 .../Button}/StartButton.controller | 0 .../Button}/StartButton.controller.meta | 0 Assets/Resources/Animation/Mouse.meta | 8 + .../Animation => Animation/Mouse}/Cheese.anim | 0 .../Mouse}/Cheese.anim.meta | 0 .../Mouse}/Cheese.controller | 0 .../Mouse}/Cheese.controller.meta | 0 .../Animation => Animation/Mouse}/Die.anim | 0 .../Mouse}/Die.anim.meta | 0 .../Animation => Animation/Mouse}/Idle1.anim | 0 .../Mouse}/Idle1.anim.meta | 0 .../Animation => Animation/Mouse}/Idle2.anim | 0 .../Mouse}/Idle2.anim.meta | 0 .../Animation => Animation/Mouse}/Idle3.anim | 0 .../Mouse}/Idle3.anim.meta | 0 .../Animation => Animation/Mouse}/Jump.anim | 0 .../Mouse}/Jump.anim.meta | 0 .../Animation => Animation/Mouse}/Land.anim | 0 .../Mouse}/Land.anim.meta | 0 .../Mouse}/PlayerAnimator.controller | 0 .../Mouse}/PlayerAnimator.controller.meta | 0 .../Mouse}/RatMouse.png | Bin .../Mouse}/RatMouse.png.meta | 0 .../Animation => Animation/Mouse}/Run1.anim | 0 .../Mouse}/Run1.anim.meta | 0 .../Animation => Animation/Mouse}/Run2.anim | 0 .../Mouse}/Run2.anim.meta | 0 .../Resources/Prefabs/System/UIManager.prefab | 88 ++++ Assets/Resources/Prefabs/UI/LevelUI.prefab | 24 +- .../Scenes/LevelScene/ExampleScene.unity | 52 +++ .../Resources/Scenes/LevelScene/Level_1.unity | 414 +++++++++++------- .../Resources/Scripts/Manager/GameManager.cs | 9 +- .../{Replay => Manager}/SpawnManager.cs | 0 .../{Replay => Manager}/SpawnManager.cs.meta | 0 Assets/Resources/Scripts/Manager/UIManager.cs | 17 +- .../{Replay => Player}/GhostController.cs | 0 .../GhostController.cs.meta | 0 .../Scripts/{Replay => Player}/InputFrame.cs | 0 .../{Replay => Player}/InputFrame.cs.meta | 0 .../{Replay => Player}/InputRecorder.cs | 0 .../{Replay => Player}/InputRecorder.cs.meta | 0 .../Scripts/Player/PlayerController.cs | 2 +- 46 files changed, 436 insertions(+), 180 deletions(-) rename Assets/Resources/{Images => }/Animation.meta (100%) rename Assets/Resources/{Scripts/Replay.meta => Animation/Button.meta} (77%) rename Assets/Resources/{Images/Animation => Animation/Button}/ExitButton.controller (100%) rename Assets/Resources/{Images/Animation => Animation/Button}/ExitButton.controller.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Button}/StartButton.controller (100%) rename Assets/Resources/{Images/Animation => Animation/Button}/StartButton.controller.meta (100%) create mode 100644 Assets/Resources/Animation/Mouse.meta rename Assets/Resources/{Images/Animation => Animation/Mouse}/Cheese.anim (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Cheese.anim.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Cheese.controller (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Cheese.controller.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Die.anim (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Die.anim.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Idle1.anim (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Idle1.anim.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Idle2.anim (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Idle2.anim.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Idle3.anim (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Idle3.anim.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Jump.anim (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Jump.anim.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Land.anim (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Land.anim.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/PlayerAnimator.controller (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/PlayerAnimator.controller.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/RatMouse.png (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/RatMouse.png.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Run1.anim (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Run1.anim.meta (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Run2.anim (100%) rename Assets/Resources/{Images/Animation => Animation/Mouse}/Run2.anim.meta (100%) rename Assets/Resources/Scripts/{Replay => Manager}/SpawnManager.cs (100%) rename Assets/Resources/Scripts/{Replay => Manager}/SpawnManager.cs.meta (100%) rename Assets/Resources/Scripts/{Replay => Player}/GhostController.cs (100%) rename Assets/Resources/Scripts/{Replay => Player}/GhostController.cs.meta (100%) rename Assets/Resources/Scripts/{Replay => Player}/InputFrame.cs (100%) rename Assets/Resources/Scripts/{Replay => Player}/InputFrame.cs.meta (100%) rename Assets/Resources/Scripts/{Replay => Player}/InputRecorder.cs (100%) rename Assets/Resources/Scripts/{Replay => Player}/InputRecorder.cs.meta (100%) diff --git a/Assets/Resources/Images/Animation.meta b/Assets/Resources/Animation.meta similarity index 100% rename from Assets/Resources/Images/Animation.meta rename to Assets/Resources/Animation.meta diff --git a/Assets/Resources/Scripts/Replay.meta b/Assets/Resources/Animation/Button.meta similarity index 77% rename from Assets/Resources/Scripts/Replay.meta rename to Assets/Resources/Animation/Button.meta index 2d50b80..636ca90 100644 --- a/Assets/Resources/Scripts/Replay.meta +++ b/Assets/Resources/Animation/Button.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 7b1013dd5c5ef524ebd2d9c235a84f90 +guid: 5cd97b90f9c612a4e839e0bdf8f9297e folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Resources/Images/Animation/ExitButton.controller b/Assets/Resources/Animation/Button/ExitButton.controller similarity index 100% rename from Assets/Resources/Images/Animation/ExitButton.controller rename to Assets/Resources/Animation/Button/ExitButton.controller diff --git a/Assets/Resources/Images/Animation/ExitButton.controller.meta b/Assets/Resources/Animation/Button/ExitButton.controller.meta similarity index 100% rename from Assets/Resources/Images/Animation/ExitButton.controller.meta rename to Assets/Resources/Animation/Button/ExitButton.controller.meta diff --git a/Assets/Resources/Images/Animation/StartButton.controller b/Assets/Resources/Animation/Button/StartButton.controller similarity index 100% rename from Assets/Resources/Images/Animation/StartButton.controller rename to Assets/Resources/Animation/Button/StartButton.controller diff --git a/Assets/Resources/Images/Animation/StartButton.controller.meta b/Assets/Resources/Animation/Button/StartButton.controller.meta similarity index 100% rename from Assets/Resources/Images/Animation/StartButton.controller.meta rename to Assets/Resources/Animation/Button/StartButton.controller.meta diff --git a/Assets/Resources/Animation/Mouse.meta b/Assets/Resources/Animation/Mouse.meta new file mode 100644 index 0000000..ee7f376 --- /dev/null +++ b/Assets/Resources/Animation/Mouse.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a4be211a5b1c5ca4f92b48b954969871 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Resources/Images/Animation/Cheese.anim b/Assets/Resources/Animation/Mouse/Cheese.anim similarity index 100% rename from Assets/Resources/Images/Animation/Cheese.anim rename to Assets/Resources/Animation/Mouse/Cheese.anim diff --git a/Assets/Resources/Images/Animation/Cheese.anim.meta b/Assets/Resources/Animation/Mouse/Cheese.anim.meta similarity index 100% rename from Assets/Resources/Images/Animation/Cheese.anim.meta rename to Assets/Resources/Animation/Mouse/Cheese.anim.meta diff --git a/Assets/Resources/Images/Animation/Cheese.controller b/Assets/Resources/Animation/Mouse/Cheese.controller similarity index 100% rename from Assets/Resources/Images/Animation/Cheese.controller rename to Assets/Resources/Animation/Mouse/Cheese.controller diff --git a/Assets/Resources/Images/Animation/Cheese.controller.meta b/Assets/Resources/Animation/Mouse/Cheese.controller.meta similarity index 100% rename from Assets/Resources/Images/Animation/Cheese.controller.meta rename to Assets/Resources/Animation/Mouse/Cheese.controller.meta diff --git a/Assets/Resources/Images/Animation/Die.anim b/Assets/Resources/Animation/Mouse/Die.anim similarity index 100% rename from Assets/Resources/Images/Animation/Die.anim rename to Assets/Resources/Animation/Mouse/Die.anim diff --git a/Assets/Resources/Images/Animation/Die.anim.meta b/Assets/Resources/Animation/Mouse/Die.anim.meta similarity index 100% rename from Assets/Resources/Images/Animation/Die.anim.meta rename to Assets/Resources/Animation/Mouse/Die.anim.meta diff --git a/Assets/Resources/Images/Animation/Idle1.anim b/Assets/Resources/Animation/Mouse/Idle1.anim similarity index 100% rename from Assets/Resources/Images/Animation/Idle1.anim rename to Assets/Resources/Animation/Mouse/Idle1.anim diff --git a/Assets/Resources/Images/Animation/Idle1.anim.meta b/Assets/Resources/Animation/Mouse/Idle1.anim.meta similarity index 100% rename from Assets/Resources/Images/Animation/Idle1.anim.meta rename to Assets/Resources/Animation/Mouse/Idle1.anim.meta diff --git a/Assets/Resources/Images/Animation/Idle2.anim b/Assets/Resources/Animation/Mouse/Idle2.anim similarity index 100% rename from Assets/Resources/Images/Animation/Idle2.anim rename to Assets/Resources/Animation/Mouse/Idle2.anim diff --git a/Assets/Resources/Images/Animation/Idle2.anim.meta b/Assets/Resources/Animation/Mouse/Idle2.anim.meta similarity index 100% rename from Assets/Resources/Images/Animation/Idle2.anim.meta rename to Assets/Resources/Animation/Mouse/Idle2.anim.meta diff --git a/Assets/Resources/Images/Animation/Idle3.anim b/Assets/Resources/Animation/Mouse/Idle3.anim similarity index 100% rename from Assets/Resources/Images/Animation/Idle3.anim rename to Assets/Resources/Animation/Mouse/Idle3.anim diff --git a/Assets/Resources/Images/Animation/Idle3.anim.meta b/Assets/Resources/Animation/Mouse/Idle3.anim.meta similarity index 100% rename from Assets/Resources/Images/Animation/Idle3.anim.meta rename to Assets/Resources/Animation/Mouse/Idle3.anim.meta diff --git a/Assets/Resources/Images/Animation/Jump.anim b/Assets/Resources/Animation/Mouse/Jump.anim similarity index 100% rename from Assets/Resources/Images/Animation/Jump.anim rename to Assets/Resources/Animation/Mouse/Jump.anim diff --git a/Assets/Resources/Images/Animation/Jump.anim.meta b/Assets/Resources/Animation/Mouse/Jump.anim.meta similarity index 100% rename from Assets/Resources/Images/Animation/Jump.anim.meta rename to Assets/Resources/Animation/Mouse/Jump.anim.meta diff --git a/Assets/Resources/Images/Animation/Land.anim b/Assets/Resources/Animation/Mouse/Land.anim similarity index 100% rename from Assets/Resources/Images/Animation/Land.anim rename to Assets/Resources/Animation/Mouse/Land.anim diff --git a/Assets/Resources/Images/Animation/Land.anim.meta b/Assets/Resources/Animation/Mouse/Land.anim.meta similarity index 100% rename from Assets/Resources/Images/Animation/Land.anim.meta rename to Assets/Resources/Animation/Mouse/Land.anim.meta diff --git a/Assets/Resources/Images/Animation/PlayerAnimator.controller b/Assets/Resources/Animation/Mouse/PlayerAnimator.controller similarity index 100% rename from Assets/Resources/Images/Animation/PlayerAnimator.controller rename to Assets/Resources/Animation/Mouse/PlayerAnimator.controller diff --git a/Assets/Resources/Images/Animation/PlayerAnimator.controller.meta b/Assets/Resources/Animation/Mouse/PlayerAnimator.controller.meta similarity index 100% rename from Assets/Resources/Images/Animation/PlayerAnimator.controller.meta rename to Assets/Resources/Animation/Mouse/PlayerAnimator.controller.meta diff --git a/Assets/Resources/Images/Animation/RatMouse.png b/Assets/Resources/Animation/Mouse/RatMouse.png similarity index 100% rename from Assets/Resources/Images/Animation/RatMouse.png rename to Assets/Resources/Animation/Mouse/RatMouse.png diff --git a/Assets/Resources/Images/Animation/RatMouse.png.meta b/Assets/Resources/Animation/Mouse/RatMouse.png.meta similarity index 100% rename from Assets/Resources/Images/Animation/RatMouse.png.meta rename to Assets/Resources/Animation/Mouse/RatMouse.png.meta diff --git a/Assets/Resources/Images/Animation/Run1.anim b/Assets/Resources/Animation/Mouse/Run1.anim similarity index 100% rename from Assets/Resources/Images/Animation/Run1.anim rename to Assets/Resources/Animation/Mouse/Run1.anim diff --git a/Assets/Resources/Images/Animation/Run1.anim.meta b/Assets/Resources/Animation/Mouse/Run1.anim.meta similarity index 100% rename from Assets/Resources/Images/Animation/Run1.anim.meta rename to Assets/Resources/Animation/Mouse/Run1.anim.meta diff --git a/Assets/Resources/Images/Animation/Run2.anim b/Assets/Resources/Animation/Mouse/Run2.anim similarity index 100% rename from Assets/Resources/Images/Animation/Run2.anim rename to Assets/Resources/Animation/Mouse/Run2.anim diff --git a/Assets/Resources/Images/Animation/Run2.anim.meta b/Assets/Resources/Animation/Mouse/Run2.anim.meta similarity index 100% rename from Assets/Resources/Images/Animation/Run2.anim.meta rename to Assets/Resources/Animation/Mouse/Run2.anim.meta diff --git a/Assets/Resources/Prefabs/System/UIManager.prefab b/Assets/Resources/Prefabs/System/UIManager.prefab index 74fe535..cf8cd3a 100644 --- a/Assets/Resources/Prefabs/System/UIManager.prefab +++ b/Assets/Resources/Prefabs/System/UIManager.prefab @@ -48,6 +48,9 @@ MonoBehaviour: livesText: {fileID: 4142321717954164494} timeText: {fileID: 784001134242485064} pausePanel: {fileID: 7521780356471096617} + ResumeButton: {fileID: 5900313407565897608} + ExitButton: {fileID: 4977390440677904011} + ReTryButton: {fileID: 834880540671135066} --- !u!1001 &3477656612761023509 PrefabInstance: m_ObjectHideFlags: 0 @@ -56,6 +59,38 @@ PrefabInstance: serializedVersion: 3 m_TransformParent: {fileID: 51096793853037672} m_Modifications: + - target: {fileID: 2454891146980959468, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2454891146980959468, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2454891146980959468, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2454891146980959468, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4046169448865673977, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4046169448865673977, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4046169448865673977, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 4046169448865673977, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} propertyPath: m_Pivot.x value: 0 @@ -140,6 +175,26 @@ PrefabInstance: propertyPath: m_Name value: LevelUI objectReference: {fileID: 0} + - target: {fileID: 8600203771751163148, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8864632446720021300, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8864632446720021300, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8864632446720021300, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8864632446720021300, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] @@ -156,6 +211,17 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text +--- !u!114 &834880540671135066 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 4311362312104474959, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + m_PrefabInstance: {fileID: 3477656612761023509} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button --- !u!114 &4142321717954164494 stripped MonoBehaviour: m_CorrespondingSourceObject: {fileID: 666363301384651547, guid: a9db1da172f932f4bbcecad853218a22, type: 3} @@ -167,6 +233,28 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} m_Name: m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Text +--- !u!114 &4977390440677904011 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 8453292232745728670, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + m_PrefabInstance: {fileID: 3477656612761023509} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button +--- !u!114 &5900313407565897608 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 7034905793721281437, guid: a9db1da172f932f4bbcecad853218a22, type: 3} + m_PrefabInstance: {fileID: 3477656612761023509} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Button --- !u!1 &7521780356471096617 stripped GameObject: m_CorrespondingSourceObject: {fileID: 6350538516619866428, guid: a9db1da172f932f4bbcecad853218a22, type: 3} diff --git a/Assets/Resources/Prefabs/UI/LevelUI.prefab b/Assets/Resources/Prefabs/UI/LevelUI.prefab index 9a16330..288080b 100644 --- a/Assets/Resources/Prefabs/UI/LevelUI.prefab +++ b/Assets/Resources/Prefabs/UI/LevelUI.prefab @@ -34,9 +34,9 @@ RectTransform: - {fileID: 8972087712189887352} m_Father: {fileID: 8366345600783496380} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 721.65497, y: -50} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 637.5, y: 237.5} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &4653677641626993281 @@ -211,7 +211,7 @@ MonoBehaviour: m_HorizontalOverflow: 0 m_VerticalOverflow: 0 m_LineSpacing: 1 - m_Text: REPLAY + m_Text: RETRY --- !u!1 &1513309867435190248 GameObject: m_ObjectHideFlags: 0 @@ -321,9 +321,9 @@ RectTransform: - {fileID: 7964668214262281477} m_Father: {fileID: 8366345600783496380} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 244.90833, y: -50} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 637.5, y: 237.5} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &289032216194717987 @@ -749,7 +749,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &2564788831232690097 RectTransform: m_ObjectHideFlags: 0 @@ -1151,7 +1151,7 @@ GameObject: - component: {fileID: 8545628987191718553} - component: {fileID: 4311362312104474959} m_Layer: 5 - m_Name: Replay + m_Name: Retry m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 @@ -1172,9 +1172,9 @@ RectTransform: - {fileID: 4486562447395805760} m_Father: {fileID: 8366345600783496380} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} - m_AnchorMin: {x: 0, y: 1} - m_AnchorMax: {x: 0, y: 1} - m_AnchoredPosition: {x: 1198.4016, y: -50} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 637.5, y: 237.5} m_Pivot: {x: 0.5, y: 0.5} --- !u!222 &952143658998337882 diff --git a/Assets/Resources/Scenes/LevelScene/ExampleScene.unity b/Assets/Resources/Scenes/LevelScene/ExampleScene.unity index 45997b4..d6f587c 100644 --- a/Assets/Resources/Scenes/LevelScene/ExampleScene.unity +++ b/Assets/Resources/Scenes/LevelScene/ExampleScene.unity @@ -5462,10 +5462,62 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} + - target: {fileID: 605171125080917740, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 605171125080917740, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 605171125080917740, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchoredPosition.x + value: 1198.4016 + objectReference: {fileID: 0} + - target: {fileID: 605171125080917740, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchoredPosition.y + value: -50 + objectReference: {fileID: 0} + - target: {fileID: 1320285034244313337, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1320285034244313337, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1320285034244313337, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchoredPosition.x + value: 244.90833 + objectReference: {fileID: 0} + - target: {fileID: 1320285034244313337, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchoredPosition.y + value: -50 + objectReference: {fileID: 0} + - target: {fileID: 5424197064635361057, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5424197064635361057, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5424197064635361057, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchoredPosition.x + value: 721.65497 + objectReference: {fileID: 0} + - target: {fileID: 5424197064635361057, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_AnchoredPosition.y + value: -50 + objectReference: {fileID: 0} - target: {fileID: 6452561418906399231, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} propertyPath: m_Name value: UIManager objectReference: {fileID: 0} + - target: {fileID: 7521780356471096617, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_IsActive + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_RemovedGameObjects: [] m_AddedGameObjects: [] diff --git a/Assets/Resources/Scenes/LevelScene/Level_1.unity b/Assets/Resources/Scenes/LevelScene/Level_1.unity index 43fbb24..bc8ee7e 100644 --- a/Assets/Resources/Scenes/LevelScene/Level_1.unity +++ b/Assets/Resources/Scenes/LevelScene/Level_1.unity @@ -5125,6 +5125,63 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &309423277 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 51096793853037672, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_LocalPosition.x + value: 678.2479 + objectReference: {fileID: 0} + - target: {fileID: 51096793853037672, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_LocalPosition.y + value: 531.10114 + objectReference: {fileID: 0} + - target: {fileID: 51096793853037672, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 51096793853037672, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 51096793853037672, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 51096793853037672, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 51096793853037672, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 51096793853037672, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 51096793853037672, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 51096793853037672, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6452561418906399231, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} + propertyPath: m_Name + value: UIManager + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 021b91bfee59ac546b2a0d5ca2b87683, type: 3} --- !u!1 &309926745 GameObject: m_ObjectHideFlags: 0 @@ -5275,10 +5332,70 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 1c367f7ce16fad44a8c04ccebbd8a354, type: 3} m_Name: m_EditorClassIdentifier: Assembly-CSharp::CameraEffect - cameraSpawnPoint: {fileID: 1105961120} smoothTime: 0.3 - offset: {x: 0, y: 2, z: -10} lookDownAmount: 4 + offset: {x: 0, y: 2, z: -10} +--- !u!1001 &679319475 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 1010655977634670189, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: spawnPoint + value: + objectReference: {fileID: 1105961120} + - target: {fileID: 6485949944229260946, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: m_Name + value: RecordingManager + objectReference: {fileID: 0} + - target: {fileID: 6979557650803657012, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: m_LocalPosition.x + value: 678.2479 + objectReference: {fileID: 0} + - target: {fileID: 6979557650803657012, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: m_LocalPosition.y + value: 531.10114 + objectReference: {fileID: 0} + - target: {fileID: 6979557650803657012, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6979557650803657012, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6979557650803657012, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6979557650803657012, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6979557650803657012, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6979557650803657012, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6979557650803657012, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6979557650803657012, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 0a27a521c22c36347aa587fca3dcc298, type: 3} --- !u!1 &1105961119 GameObject: m_ObjectHideFlags: 0 @@ -5415,9 +5532,8 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: e69cc460000beea4d84318e5dead19ae, type: 3} m_Name: m_EditorClassIdentifier: Assembly-CSharp::GPTCode - cam: {fileID: 309926745} parallaxEffect: 0.8 ---- !u!1 &1189707407 +--- !u!1 &1406346295 GameObject: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} @@ -5425,45 +5541,157 @@ GameObject: m_PrefabAsset: {fileID: 0} serializedVersion: 6 m_Component: - - component: {fileID: 1189707409} - - component: {fileID: 1189707408} + - component: {fileID: 1406346297} + - component: {fileID: 1406346296} m_Layer: 0 - m_Name: RecordingManager + m_Name: LevelSetUp m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 ---- !u!114 &1189707408 +--- !u!114 &1406346296 MonoBehaviour: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1189707407} + m_GameObject: {fileID: 1406346295} m_Enabled: 1 m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 37140bdf17b0dcb4e9deaf1b3320b46c, type: 3} + m_Script: {fileID: 11500000, guid: b47fdc6f0e9ac4d41bdb990f0fd69920, type: 3} m_Name: - m_EditorClassIdentifier: Assembly-CSharp::RecordingManager - playerPrefab: {fileID: 306704792185372058, guid: 85a391b7ef017f1478496ec42f6a855e, type: 3} - ghostPrefab: {fileID: 306704792185372058, guid: 35d5758394bb02544b3262799c48fc08, type: 3} - spawnPoint: {fileID: 1105961120} ---- !u!4 &1189707409 + m_EditorClassIdentifier: Assembly-CSharp::LevelSetUp + levelData: {fileID: 11400000, guid: f4f85a1ce9799cd4fb8614a664da3fa5, type: 2} +--- !u!4 &1406346297 Transform: m_ObjectHideFlags: 0 m_CorrespondingSourceObject: {fileID: 0} m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1189707407} + m_GameObject: {fileID: 1406346295} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalPosition: {x: 678.2479, y: 531.10114, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &1474426889 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 203513633535214273, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} + propertyPath: m_Name + value: GameManager + objectReference: {fileID: 0} + - target: {fileID: 7448993072294237469, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} + propertyPath: m_LocalPosition.x + value: 678.2479 + objectReference: {fileID: 0} + - target: {fileID: 7448993072294237469, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} + propertyPath: m_LocalPosition.y + value: 531.10114 + objectReference: {fileID: 0} + - target: {fileID: 7448993072294237469, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7448993072294237469, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7448993072294237469, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7448993072294237469, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7448993072294237469, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7448993072294237469, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7448993072294237469, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7448993072294237469, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 19bf1e977f170cd45be3767f609fccc8, type: 3} +--- !u!1001 &1516981847 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 7011298231800764880, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} + propertyPath: m_LocalPosition.x + value: 678.2479 + objectReference: {fileID: 0} + - target: {fileID: 7011298231800764880, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} + propertyPath: m_LocalPosition.y + value: 531.10114 + objectReference: {fileID: 0} + - target: {fileID: 7011298231800764880, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7011298231800764880, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 7011298231800764880, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} + propertyPath: m_LocalRotation.x + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7011298231800764880, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} + propertyPath: m_LocalRotation.y + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7011298231800764880, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} + propertyPath: m_LocalRotation.z + value: -0 + objectReference: {fileID: 0} + - target: {fileID: 7011298231800764880, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7011298231800764880, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7011298231800764880, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7716413082636964311, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} + propertyPath: m_Name + value: SoundManager + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 4491711cdda4d9e40899a5adcaba53b2, type: 3} --- !u!1 &1554208357 GameObject: m_ObjectHideFlags: 0 @@ -5555,151 +5783,6 @@ SpriteRenderer: m_SpriteTileMode: 0 m_WasSpriteAssigned: 1 m_SpriteSortPoint: 0 ---- !u!1001 &1651118052 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - serializedVersion: 3 - m_TransformParent: {fileID: 0} - m_Modifications: - - target: {fileID: 2454891146980959468, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 2454891146980959468, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 2454891146980959468, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 2454891146980959468, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4046169448865673977, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4046169448865673977, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4046169448865673977, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 4046169448865673977, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_Pivot.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_Pivot.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchorMax.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchorMin.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_LocalRotation.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_LocalRotation.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_LocalRotation.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6575799500092977550, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8600203771751163148, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_Name - value: LevelUI - objectReference: {fileID: 0} - - target: {fileID: 8864632446720021300, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8864632446720021300, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8864632446720021300, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8864632446720021300, guid: a9db1da172f932f4bbcecad853218a22, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_RemovedGameObjects: [] - m_AddedGameObjects: [] - m_AddedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: a9db1da172f932f4bbcecad853218a22, type: 3} --- !u!1 &1893744572 GameObject: m_ObjectHideFlags: 0 @@ -5874,10 +5957,13 @@ SceneRoots: m_ObjectHideFlags: 0 m_Roots: - {fileID: 309926748} - - {fileID: 1189707409} - {fileID: 1105961120} - {fileID: 1893744574} - {fileID: 153518993} - - {fileID: 1651118052} - {fileID: 1180046189} - {fileID: 71467770} + - {fileID: 1474426889} + - {fileID: 679319475} + - {fileID: 1516981847} + - {fileID: 309423277} + - {fileID: 1406346297} diff --git a/Assets/Resources/Scripts/Manager/GameManager.cs b/Assets/Resources/Scripts/Manager/GameManager.cs index 269cef7..4bd452a 100644 --- a/Assets/Resources/Scripts/Manager/GameManager.cs +++ b/Assets/Resources/Scripts/Manager/GameManager.cs @@ -140,6 +140,8 @@ public class GameManager : MonoBehaviour currentTimer = 0; currentReplayCount = 0; timer = 0; + + SceneManager.LoadScene("LevelSelction"); OnExitLevel?.Invoke(); } @@ -169,6 +171,11 @@ public class GameManager : MonoBehaviour } public void Retry() + { + EnterLevel(currentLevelData); + } + + public void Replay() { if (gameState == GameState.Playing) { @@ -182,7 +189,7 @@ public class GameManager : MonoBehaviour public void TogglePause() { - if (gameState == GameState.Playing) + if (gameState == GameState.Playing || gameState == GameState.Preview) { gameState = GameState.Pause; Time.timeScale = 0; diff --git a/Assets/Resources/Scripts/Replay/SpawnManager.cs b/Assets/Resources/Scripts/Manager/SpawnManager.cs similarity index 100% rename from Assets/Resources/Scripts/Replay/SpawnManager.cs rename to Assets/Resources/Scripts/Manager/SpawnManager.cs diff --git a/Assets/Resources/Scripts/Replay/SpawnManager.cs.meta b/Assets/Resources/Scripts/Manager/SpawnManager.cs.meta similarity index 100% rename from Assets/Resources/Scripts/Replay/SpawnManager.cs.meta rename to Assets/Resources/Scripts/Manager/SpawnManager.cs.meta diff --git a/Assets/Resources/Scripts/Manager/UIManager.cs b/Assets/Resources/Scripts/Manager/UIManager.cs index eb359a2..437a150 100644 --- a/Assets/Resources/Scripts/Manager/UIManager.cs +++ b/Assets/Resources/Scripts/Manager/UIManager.cs @@ -1,4 +1,5 @@ using UnityEngine; +using UnityEngine.EventSystems; using UnityEngine.UI; public class UIManager : MonoBehaviour @@ -7,8 +8,12 @@ public class UIManager : MonoBehaviour [SerializeField] private Text livesText; [SerializeField] private Text timeText; + [SerializeField] private GameObject pausePanel; - + [SerializeField] private Button ResumeButton; + [SerializeField] private Button ExitButton; + [SerializeField] private Button ReTryButton; + private void Awake() { if (instance == null) @@ -25,11 +30,20 @@ public class UIManager : MonoBehaviour private void Start() { + if (pausePanel != null) + { + pausePanel.SetActive(false); + } + GameManager.instance.OnReplayCountChanged += UpdateLivesText; GameManager.instance.OnTimeChanged += UpdateTimeText; GameManager.instance.OnEnterLevel += ShowLevelUI; GameManager.instance.OnExitLevel += HideLevelUI; GameManager.instance.OnPressPause += OnPressPause; + + ResumeButton.onClick.AddListener(GameManager.instance.TogglePause); + ExitButton.onClick.AddListener(GameManager.instance.ExitLevel); + ReTryButton.onClick.AddListener(GameManager.instance.Retry); } private void OnDestroy() @@ -54,6 +68,7 @@ public class UIManager : MonoBehaviour private void OnPressPause(bool pause) { pausePanel.SetActive(pause); + EventSystem.current.SetSelectedGameObject(ResumeButton.gameObject); } private void ShowLevelUI() diff --git a/Assets/Resources/Scripts/Replay/GhostController.cs b/Assets/Resources/Scripts/Player/GhostController.cs similarity index 100% rename from Assets/Resources/Scripts/Replay/GhostController.cs rename to Assets/Resources/Scripts/Player/GhostController.cs diff --git a/Assets/Resources/Scripts/Replay/GhostController.cs.meta b/Assets/Resources/Scripts/Player/GhostController.cs.meta similarity index 100% rename from Assets/Resources/Scripts/Replay/GhostController.cs.meta rename to Assets/Resources/Scripts/Player/GhostController.cs.meta diff --git a/Assets/Resources/Scripts/Replay/InputFrame.cs b/Assets/Resources/Scripts/Player/InputFrame.cs similarity index 100% rename from Assets/Resources/Scripts/Replay/InputFrame.cs rename to Assets/Resources/Scripts/Player/InputFrame.cs diff --git a/Assets/Resources/Scripts/Replay/InputFrame.cs.meta b/Assets/Resources/Scripts/Player/InputFrame.cs.meta similarity index 100% rename from Assets/Resources/Scripts/Replay/InputFrame.cs.meta rename to Assets/Resources/Scripts/Player/InputFrame.cs.meta diff --git a/Assets/Resources/Scripts/Replay/InputRecorder.cs b/Assets/Resources/Scripts/Player/InputRecorder.cs similarity index 100% rename from Assets/Resources/Scripts/Replay/InputRecorder.cs rename to Assets/Resources/Scripts/Player/InputRecorder.cs diff --git a/Assets/Resources/Scripts/Replay/InputRecorder.cs.meta b/Assets/Resources/Scripts/Player/InputRecorder.cs.meta similarity index 100% rename from Assets/Resources/Scripts/Replay/InputRecorder.cs.meta rename to Assets/Resources/Scripts/Player/InputRecorder.cs.meta diff --git a/Assets/Resources/Scripts/Player/PlayerController.cs b/Assets/Resources/Scripts/Player/PlayerController.cs index 1636e64..b3dc7ad 100644 --- a/Assets/Resources/Scripts/Player/PlayerController.cs +++ b/Assets/Resources/Scripts/Player/PlayerController.cs @@ -42,7 +42,7 @@ public class PlayerController : MonoBehaviour { if (value.isPressed) { - GameManager.instance.Retry(); + GameManager.instance.Replay(); } } }