mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-25 06:05:46 +03:00
OnAchievementStateChanged nicer
This commit is contained in:
parent
84954436f7
commit
7bd8aaa793
@ -55,12 +55,17 @@ public void Refresh()
|
||||
|
||||
foreach ( var i in unlockedRecently )
|
||||
{
|
||||
OnAchievementStateChanged?.Invoke( i );
|
||||
OnUnlocked( i );
|
||||
}
|
||||
|
||||
unlockedRecently.Clear();
|
||||
}
|
||||
|
||||
internal void OnUnlocked( Achievement a )
|
||||
{
|
||||
OnAchievementStateChanged?.Invoke( a );
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
client = null;
|
||||
@ -211,6 +216,8 @@ public bool Trigger( bool apply = true )
|
||||
client.Stats.StoreStats();
|
||||
}
|
||||
|
||||
client.Achievements.OnUnlocked( this );
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user