I'm writing a plugin for in-app purchases for my unity game which needs to use the .Net 3.5 framework.
So going from the docs ref: unity WP8 plugin-docs
It states: "...implement identical non-private methods/fields/properties as in the real DLL"
So I'm trying to apply that to the following method, which needs to use the Task class as it awaits a method.
So here's the method that actually does the work.
public async Task<bool> PurchaseUpgrade(string ID)
{
var listings = await CurrentApp.LoadListingInformationAsync();
//The rest of the method-body is irrelevant...
So this won't compile as-is.
}
So yeah I need to write a method in the dll the editor 'uses' just with a matching signature, alas I can't because of the Task class.
public async Task<bool> PurchaseUpgrade(string ID)
{
//This could literally be empty if the method was void, but need it to return
Task<bool>, and can't work out how
return true;
}
Anyone able to give any insight into how I can accomplish this?
Thanks in advance