Make sending data to the server easier & send new stats to the server (and load, not fully yet tho)
This commit is contained in:
13
Assets/Scripts/EncryptedWWWForm.cs
Normal file
13
Assets/Scripts/EncryptedWWWForm.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class EncryptedWWWForm
|
||||
{
|
||||
private readonly WWWForm form = new();
|
||||
|
||||
public void AddField(string key, string value)
|
||||
{
|
||||
form.AddField(key, SensitiveInfo.Encrypt(value, SensitiveInfo.SERVER_SEND_TRANSFER_KEY));
|
||||
}
|
||||
|
||||
public WWWForm GetWWWForm() => form;
|
||||
}
|
||||
Reference in New Issue
Block a user