Hi,
I'm attempting to use the UnitySDK by working with the ProgressiveRewards recipe. It seems that when I receive the list of grantedItems I'm receiving a List<System.Object> instead of List<ItemInstance> and it throws a cast exception if I attempt to cast the list.
In ProgressiveRewards.cs the line:
List<ItemInstance> grantedItems = (List<ItemInstance>)result.FunctionResult;
Throws an exception:
InvalidCastException: Cannot cast from source type to destination type.
When looking at the contents of result.FunctionResult it was a List<System.Object>. It did not seem to matter whether or not items were being granted (ie whether there were items in the list).
I am using the .unitypackage from here: https://github.com/PlayFab/UnitySDK/blob/master/PlayFabClientSDK.unitypackage
public const string VersionString = "UnitySDK-0.32.160711";
Any ideas on how I can fix this?
Thanks