Last active
September 3, 2015 13:18
-
-
Save raphaelgmelo/c034ca1d9364a9136520 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Verify and reward user with Tickets | |
// Replace the parameter with the code registered on the developers web panel | |
JoysticketSDK.Instance.TrackEventWithCallback ("CODE_FOR_YOUR_EVENT"); | |
// Required delegate | |
JoysticketSDK.Instance.TrackEventFinished += | |
new JoysticketSDK.TrackEventFinishedEventHandler(OnTrackEventFinished); | |
public void OnTrackEventFinished(JoysticketEvent joysticketEvent){ | |
// This code will be trigged when the user gets a reward | |
Debug.Log(joysticketEvent.message); | |
Debug.Log(joysticketEvent.tickets); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment