Spark Transactions and Windows Store and Xbox One (non-UWP) support (preview)
This release introduces the ability to read and deduct sparks.
It also includes support for Windows Store and Xbox One (non-UWP) platforms. The support for these platforms is in "Preview".
If you find issues, let us know by filing issues in the issues section.
This release also fixes issue:
#18 - Getting Cost of Buttons Always Returns 0
Certain properties on the Participant were not returning correct values (for instance, LastInputAt)
Spark Transactions
Below is an example of deducting sparks when a button is pressed:
// Register for an event when the user presses a button.
MixerInteractive.OnInteractiveButtonEvent += OnInteractiveButtonEvent;
// Call the CaptureTransaction method on the InteractiveButtonEventArgs
private void OnInteractiveButtonEvent(object sender, InteractiveButtonEventArgs e)
{
e.CaptureTransaction();
}
Breaking Change
The InteractivityManager prefab now persists across scenes (it's marked DontDestroyOnLoad). This was done to address issues on scene transitions or when there was more than one scene loaded at once.
Rather than having an instance of the prefab in each scene, you will want to have one instance of the InteractivityManager prefab.