From 5b5e16d4db511d8422730e83d905bc78c628e98b Mon Sep 17 00:00:00 2001 From: kookiekenobi Date: Fri, 14 Feb 2025 02:39:05 +0800 Subject: [PATCH] game: changing script variables --- SSLR/Assets/Scripts/Backend.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SSLR/Assets/Scripts/Backend.cs b/SSLR/Assets/Scripts/Backend.cs index e9aad74..935eabd 100644 --- a/SSLR/Assets/Scripts/Backend.cs +++ b/SSLR/Assets/Scripts/Backend.cs @@ -41,7 +41,7 @@ public class Backend : MonoBehaviour FirebaseGet(); } - public async void SendData(string uid, int score, string displayName, int daysPlayed, int customersHelped, + public async void SendData(string uid, int score, string displayName, int daysPlayed, int customersHelpedCorrectly, int customersHelpedWrongly) { var user = new Users @@ -50,7 +50,7 @@ public class Backend : MonoBehaviour score = score, displayName = displayName, daysPlayed = daysPlayed, - customersHelped = customersHelped, + customersHelped = customersHelpedCorrectly, customersHelpedWrongly = customersHelpedWrongly, }; await Client.From().Insert(user).ContinueWith(SendTask =>