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"))
{
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();

View file

@ -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<NpcMovementRework>().npcData.points;
@ -75,7 +75,7 @@ public class PaperSocket : MonoBehaviour
else if (paperDepartment == "Wrong")
{
Backend.instance.User.customersHelpedWrongly += 1;
}*/
}
Destroy(paperObject);

View file

@ -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());