Hello!
I am looking to implement cloud save functionalities along with currency management (increment/decrement) using cloud code, specifically in C#. However, most available examples and documentation primarily focus on JavaScript and I would prefer the implementation to be in C#.
I was able to run a module on UGS that doesn’t require other gaming services or user auth, but I would need a basic code sample to know how to:
1- save/load a value from Cloud Save from Cloud Code C# for a user
2- update a currency for a user
This is where I got…
[CloudCodeFunction("SubstractFromSubscriptionCount")]
public async Task<int> SubstractFromSubscriptionCount()
{
// dictionary saved previously for an int:
/*
Dictionary<string, object> startValueSubscription = new Dictionary<string, object>
{
{currentSubscriptionReadingCount, TOTAL_SUBSCRIPTION_READINGS}
};
*/
var fetchData = await CloudSaveDataApi... ?
}