Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Deducting Sparks

Gersh Payzer edited this page Feb 5, 2018 · 1 revision

If you assign spark costs to buttons, you need to include the following code to have the sparks deduct:

    // Use this for initialization
    void Start () {
        MixerInteractive.OnInteractiveButtonEvent += OnInteractiveButtonEvent;
    }

    public void OnInteractiveButtonEvent(object sender, InteractiveButtonEventArgs e)
    {
        e.CaptureTransaction();
    }

Clone this wiki locally