Unity
Unity integration
Introduction
Get game achievements
using UnityEngine;
using RGN.Modules.Achievement;
using System.Collections.Generic;
public class AchievementExamples : MonoBehaviour
{
private async void GetAllGameAchievements()
{
// Retrieves the 10 first achievements setup for my game
List<AchievementData> achievements = await AchievementsModule.I.GetForCurrentAppAsync(10);
foreach (var achievement in achievements)
{
Debug.Log($"Achievement name : {achievement.name} \n" +
$"Description : {achievement.description}");
}
}
}