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