Skip to content

Instantly share code, notes, and snippets.

@raphaelgmelo
Last active September 3, 2015 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raphaelgmelo/c034ca1d9364a9136520 to your computer and use it in GitHub Desktop.
Save raphaelgmelo/c034ca1d9364a9136520 to your computer and use it in GitHub Desktop.
// 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