Triumph Lifecycle
Integrate Triumph scoring in your game. Estimated Time: 10 minutes.
Start Game
using UnityEngine;
using TriumphSDK;
public class TriumphUnityNativeMethods: MonoBehaviour, ITriumphUnityNativeMethods {
/*
* TODO: implement this method, which we will call when.
* a user has initiated a tournament.
*/
public void TriumphStartedGame()
{
StartYourGame();
}
// MARK: -- Optional
/*
* If you provided `hasTutorial` flag within configuration options,
* this method will be called when Triumph wants to show the tutorial.
* You can start a fullscreen video with your gameplay mechanics
* or launch a playable game with hints to onboard new players.
*/
public void TriumphRequestsTutorial()
{
StartYourTutorial();
}
/*
* The below methods can be used for logging purposes,
* left blank, or whatever you'd like.
* Please leave them in the code (even if blank).
*/
// We call this when the triumph SDK is dismissed.
public void TriumphDidDismiss()
{
}
// Called when the SDK presents
public void TriumphDidPresent()
{
}
// Called right before the SDK dismisses
public void TriumphWillDismiss()
{
}
// Called right before the SDK presents
public void TriumphWillPresent()
{
}
}Game pause/resume
Report Score
Score Labels
Location Premissions
Last updated