From f39ff6d5a3b0a4a54008e4ba716845d62f82c4ef Mon Sep 17 00:00:00 2001
From: Mohamad Hilmi Rinaldi <72728628+mhilmirinaldi@users.noreply.github.com>
Date: Sat, 15 Apr 2023 12:42:13 +0700
Subject: [PATCH] feat: fix backsound and direct to local scoreboard

---
 Assets/Prefabs/MainCutscene.prefab         | 2 +-
 Assets/Prefabs/OpeningCanvas.prefab        | 2 +-
 Assets/Prefabs/ProgressCanvas.prefab       | 2 +-
 Assets/Scenes/Ending.unity                 | 4 ++--
 Assets/Scenes/MainMenu.unity               | 6 +++++-
 Assets/Scripts/Managers/MainMenuManager.cs | 5 +++++
 6 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/Assets/Prefabs/MainCutscene.prefab b/Assets/Prefabs/MainCutscene.prefab
index 3f0cb6f..2f91582 100644
--- a/Assets/Prefabs/MainCutscene.prefab
+++ b/Assets/Prefabs/MainCutscene.prefab
@@ -380,7 +380,7 @@ AudioSource:
   m_Enabled: 1
   serializedVersion: 4
   OutputAudioMixerGroup: {fileID: 0}
-  m_audioClip: {fileID: 8300000, guid: 2c0ee65241d10451ea93798e12b2993a, type: 3}
+  m_audioClip: {fileID: 8300000, guid: c2bd4befd3407004dbfebeed2835cb5c, type: 3}
   m_PlayOnAwake: 1
   m_Volume: 0.9
   m_Pitch: 1
diff --git a/Assets/Prefabs/OpeningCanvas.prefab b/Assets/Prefabs/OpeningCanvas.prefab
index 139a21e..d852872 100644
--- a/Assets/Prefabs/OpeningCanvas.prefab
+++ b/Assets/Prefabs/OpeningCanvas.prefab
@@ -339,7 +339,7 @@ AudioSource:
   m_Enabled: 1
   serializedVersion: 4
   OutputAudioMixerGroup: {fileID: 0}
-  m_audioClip: {fileID: 8300000, guid: 3163ef7c8c58642ec955d4e082b5491e, type: 3}
+  m_audioClip: {fileID: 8300000, guid: 64a5cf63dc93c094fb2bc989423d7fe7, type: 3}
   m_PlayOnAwake: 1
   m_Volume: 1
   m_Pitch: 1
diff --git a/Assets/Prefabs/ProgressCanvas.prefab b/Assets/Prefabs/ProgressCanvas.prefab
index dfb5c95..d0f8a1f 100644
--- a/Assets/Prefabs/ProgressCanvas.prefab
+++ b/Assets/Prefabs/ProgressCanvas.prefab
@@ -224,7 +224,7 @@ AudioSource:
   m_Enabled: 1
   serializedVersion: 4
   OutputAudioMixerGroup: {fileID: 0}
-  m_audioClip: {fileID: 8300000, guid: b1dbb025c055f4b1aa63785e7c4a18ba, type: 3}
+  m_audioClip: {fileID: 8300000, guid: 732700035063cea459a4a158c2c28016, type: 3}
   m_PlayOnAwake: 1
   m_Volume: 0.8
   m_Pitch: 1
diff --git a/Assets/Scenes/Ending.unity b/Assets/Scenes/Ending.unity
index 2509054..e54a3b4 100644
--- a/Assets/Scenes/Ending.unity
+++ b/Assets/Scenes/Ending.unity
@@ -624,14 +624,14 @@ PrefabInstance:
     - target: {fileID: -7872298102450243469, guid: e25ebba664f320f4783a61760095f94c, type: 3}
       propertyPath: m_audioClip
       value: 
-      objectReference: {fileID: 8300000, guid: dd702210d7e254e769e612c488a58e4d, type: 3}
+      objectReference: {fileID: 8300000, guid: 6b9282d7f399a074a8a175727afda80b, type: 3}
     - target: {fileID: 9153430419299577848, guid: e25ebba664f320f4783a61760095f94c, type: 3}
       propertyPath: dialogue
       value: 
       objectReference: {fileID: 11400000, guid: 391a27064199f4b1190fe91b2e9a8973, type: 2}
     - target: {fileID: 9153430419299577848, guid: e25ebba664f320f4783a61760095f94c, type: 3}
       propertyPath: nextScene
-      value: 
+      value: LocalScoreBoard
       objectReference: {fileID: 0}
     - target: {fileID: 9153430419299577851, guid: e25ebba664f320f4783a61760095f94c, type: 3}
       propertyPath: m_Name
diff --git a/Assets/Scenes/MainMenu.unity b/Assets/Scenes/MainMenu.unity
index e675ba4..f87b304 100644
--- a/Assets/Scenes/MainMenu.unity
+++ b/Assets/Scenes/MainMenu.unity
@@ -38,7 +38,7 @@ RenderSettings:
   m_ReflectionIntensity: 1
   m_CustomReflection: {fileID: 0}
   m_Sun: {fileID: 0}
-  m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1}
+  m_IndirectSpecularColor: {r: 0.18028305, g: 0.22571313, b: 0.3069213, a: 1}
   m_UseRadianceAmbientProbe: 0
 --- !u!157 &3
 LightmapSettings:
@@ -350,6 +350,10 @@ PrefabInstance:
   m_Modification:
     m_TransformParent: {fileID: 0}
     m_Modifications:
+    - target: {fileID: 2034525850, guid: 5d9b0e04e9c22b94caa498847bbb75a6, type: 3}
+      propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
+      value: LocalScoreboard
+      objectReference: {fileID: 0}
     - target: {fileID: 1922826709922847276, guid: 5d9b0e04e9c22b94caa498847bbb75a6, type: 3}
       propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
       value: LoadGame
diff --git a/Assets/Scripts/Managers/MainMenuManager.cs b/Assets/Scripts/Managers/MainMenuManager.cs
index 6c108c1..381f80e 100644
--- a/Assets/Scripts/Managers/MainMenuManager.cs
+++ b/Assets/Scripts/Managers/MainMenuManager.cs
@@ -41,4 +41,9 @@ public class MainMenuManager : MonoBehaviour
     {
         Application.Quit();
     }
+
+    public void LocalScoreboard()
+    {
+        SceneManager.LoadScene("LocalScoreBoard");
+    }
 }
-- 
GitLab