From 6c7a056b644e90e41e10235574d7d45f359fcc4f Mon Sep 17 00:00:00 2001 From: kookiekenobi Date: Tue, 18 Feb 2025 05:29:24 +0800 Subject: [PATCH] game: enable adding to database --- SSLR/Assets/Scripts/DayManager.cs | 4 ++-- SSLR/Assets/Scripts/PaperSocket.cs | 4 ++-- SSLR/Assets/Scripts/ShiftManager.cs | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/SSLR/Assets/Scripts/DayManager.cs b/SSLR/Assets/Scripts/DayManager.cs index 4b83c1e..01c25a6 100644 --- a/SSLR/Assets/Scripts/DayManager.cs +++ b/SSLR/Assets/Scripts/DayManager.cs @@ -68,8 +68,8 @@ public class DayManager : MonoBehaviour if (other.CompareTag("Player")) { Debug.Log("Day completed!"); - /*Backend.instance.User.daysPlayed += 1; - Debug.Log(Backend.instance.User.daysPlayed);*/ + Backend.instance.User.daysPlayed += 1; + Debug.Log(Backend.instance.User.daysPlayed); /*shiftManagerScript.AllowShiftStart();*/ Debug.Log("You can start another shift!"); GameManager.instance.EndDay(); diff --git a/SSLR/Assets/Scripts/PaperSocket.cs b/SSLR/Assets/Scripts/PaperSocket.cs index 00c3a26..468356c 100644 --- a/SSLR/Assets/Scripts/PaperSocket.cs +++ b/SSLR/Assets/Scripts/PaperSocket.cs @@ -67,7 +67,7 @@ public class PaperSocket : MonoBehaviour var paperDepartment = stampDoc.CheckFinalDepartment(); Debug.Log(paperDepartment); - /*if (paperDepartment == "Correct") + if (paperDepartment == "Correct") { Backend.instance.User.customersHelpedCorrectly += 1; Backend.instance.User.score += GameManager.instance.currentNPC.GetComponent().npcData.points; @@ -75,7 +75,7 @@ public class PaperSocket : MonoBehaviour else if (paperDepartment == "Wrong") { Backend.instance.User.customersHelpedWrongly += 1; - }*/ + } Destroy(paperObject); diff --git a/SSLR/Assets/Scripts/ShiftManager.cs b/SSLR/Assets/Scripts/ShiftManager.cs index 824414d..6985239 100644 --- a/SSLR/Assets/Scripts/ShiftManager.cs +++ b/SSLR/Assets/Scripts/ShiftManager.cs @@ -61,8 +61,7 @@ public class ShiftManager : MonoBehaviour if (other.CompareTag("Player") && !gm.shiftStarted) { Debug.Log("Shift started"); - - /*npcSpawnArea.SetActive(true);*/ + gm.shiftStarted = true; shiftTrigger.enabled = false; StartCoroutine(StartWorkShift());