game: enable adding to database

This commit is contained in:
kookiekenobi 2025-02-18 05:29:24 +08:00
parent f13bbf54fb
commit 6c7a056b64
3 changed files with 5 additions and 6 deletions

View file

@ -68,8 +68,8 @@ public class DayManager : MonoBehaviour
if (other.CompareTag("Player")) if (other.CompareTag("Player"))
{ {
Debug.Log("Day completed!"); Debug.Log("Day completed!");
/*Backend.instance.User.daysPlayed += 1; Backend.instance.User.daysPlayed += 1;
Debug.Log(Backend.instance.User.daysPlayed);*/ Debug.Log(Backend.instance.User.daysPlayed);
/*shiftManagerScript.AllowShiftStart();*/ /*shiftManagerScript.AllowShiftStart();*/
Debug.Log("You can start another shift!"); Debug.Log("You can start another shift!");
GameManager.instance.EndDay(); GameManager.instance.EndDay();

View file

@ -67,7 +67,7 @@ public class PaperSocket : MonoBehaviour
var paperDepartment = stampDoc.CheckFinalDepartment(); var paperDepartment = stampDoc.CheckFinalDepartment();
Debug.Log(paperDepartment); Debug.Log(paperDepartment);
/*if (paperDepartment == "Correct") if (paperDepartment == "Correct")
{ {
Backend.instance.User.customersHelpedCorrectly += 1; Backend.instance.User.customersHelpedCorrectly += 1;
Backend.instance.User.score += GameManager.instance.currentNPC.GetComponent<NpcMovementRework>().npcData.points; Backend.instance.User.score += GameManager.instance.currentNPC.GetComponent<NpcMovementRework>().npcData.points;
@ -75,7 +75,7 @@ public class PaperSocket : MonoBehaviour
else if (paperDepartment == "Wrong") else if (paperDepartment == "Wrong")
{ {
Backend.instance.User.customersHelpedWrongly += 1; Backend.instance.User.customersHelpedWrongly += 1;
}*/ }
Destroy(paperObject); Destroy(paperObject);

View file

@ -61,8 +61,7 @@ public class ShiftManager : MonoBehaviour
if (other.CompareTag("Player") && !gm.shiftStarted) if (other.CompareTag("Player") && !gm.shiftStarted)
{ {
Debug.Log("Shift started"); Debug.Log("Shift started");
/*npcSpawnArea.SetActive(true);*/
gm.shiftStarted = true; gm.shiftStarted = true;
shiftTrigger.enabled = false; shiftTrigger.enabled = false;
StartCoroutine(StartWorkShift()); StartCoroutine(StartWorkShift());