Revision Difference
Achievement_Unlocked#517232
<cat>code.stats</cat>
<title>Achievement Unlocked</title>
```
void Awake()
{
//
// Tell Steamworks to call this function when something happens
//
Steamworks.SteamUserStats.OnAchievementProgress += AchievementChanged;
}
private void AchievementChanged( Steamworks.Data.Achievement ach, int currentProgress, int progress )
{
State = ach.State;
⤶
if ( ach.State )⤶
if ( ach.State )
{
Debug.Log( $"{ach.Name} WAS UNLOCKED!" );
}
}
```