game: enable adding to database
This commit is contained in:
parent
f13bbf54fb
commit
6c7a056b64
3 changed files with 5 additions and 6 deletions
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -62,7 +62,6 @@ public class ShiftManager : MonoBehaviour
|
|||
{
|
||||
Debug.Log("Shift started");
|
||||
|
||||
/*npcSpawnArea.SetActive(true);*/
|
||||
gm.shiftStarted = true;
|
||||
shiftTrigger.enabled = false;
|
||||
StartCoroutine(StartWorkShift());
|
||||
|
|
Loading…
Add table
Reference in a new issue