|
@@ -16,7 +16,7 @@ namespace KairoEngine.SteamIntegration
|
|
|
|
|
|
[Tooltip("Fire an event when an achievement is unlocked in the Steam backend")]
|
|
|
public bool broadcastEventOnUnlock = true;
|
|
|
- [ShowIf("@broadcastEventOnUnlock")] public string broadcastEventName = "SteamAchievementUnlocked";
|
|
|
+ [ShowIf("@broadcastEventOnUnlock")] public string broadcastEventName = "AchievementOverrideEvent";
|
|
|
|
|
|
public void Start()
|
|
|
{
|
|
@@ -36,7 +36,7 @@ namespace KairoEngine.SteamIntegration
|
|
|
if ( ach.State )
|
|
|
{
|
|
|
Debug.Log( $"{ach.Name} WAS UNLOCKED!" );
|
|
|
- GenericEvents.Trigger(broadcastEventName, ach.Identifier);
|
|
|
+ GenericEvents.Trigger(broadcastEventName, ach.Identifier, ach.State);
|
|
|
}
|
|
|
}
|
|
|
|