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 =>