|
@@ -54,7 +54,7 @@ namespace KairoEngine.SteamIntegration
|
|
|
{
|
|
|
if(steamStats.library[i].name == statName || steamStats.library[i].statName == statName) return steamStats.library[i];
|
|
|
}
|
|
|
- Debug.LogWarning($"Could not find stat with name \"{statName}\" in SteamStatLibrary");
|
|
|
+ //Debug.LogWarning($"Could not find stat with name \"{statName}\" in SteamStatLibrary");
|
|
|
return null;
|
|
|
}
|
|
|
|
|
@@ -75,8 +75,8 @@ namespace KairoEngine.SteamIntegration
|
|
|
SteamworksStatData statData = GetSteamStatData(statName);
|
|
|
if (statData == null) return;
|
|
|
if (statData.statType != SteamStatType.Integer) return;
|
|
|
- Steamworks.SteamUserStats.SetStat(statName, newValue);
|
|
|
- if(Steamworks.SteamUserStats.GetStatInt(statName) != newValue) Debug.LogWarning($"Stat \"{statName}\" does not exist on Steamworks");
|
|
|
+ Steamworks.SteamUserStats.SetStat(statData.statName, newValue);
|
|
|
+ if(Steamworks.SteamUserStats.GetStatInt(statData.statName) != newValue) Debug.LogWarning($"Stat \"{statData.statName}\" does not exist on Steamworks");
|
|
|
else Steamworks.SteamUserStats.StoreStats();
|
|
|
}
|
|
|
|
|
@@ -86,8 +86,8 @@ namespace KairoEngine.SteamIntegration
|
|
|
SteamworksStatData statData = GetSteamStatData(statName);
|
|
|
if (statData == null) return;
|
|
|
if (statData.statType != SteamStatType.Float) return;
|
|
|
- Steamworks.SteamUserStats.SetStat(statName, newFloatValue);
|
|
|
- if(Steamworks.SteamUserStats.GetStatFloat(statName) != newFloatValue) Debug.LogWarning($"Stat \"{statName}\" does not exist on Steamworks");
|
|
|
+ Steamworks.SteamUserStats.SetStat(statData.statName, newFloatValue);
|
|
|
+ if(Steamworks.SteamUserStats.GetStatFloat(statData.statName) != newFloatValue) Debug.LogWarning($"Stat \"{statData.statName}\" does not exist on Steamworks");
|
|
|
else Steamworks.SteamUserStats.StoreStats();
|
|
|
}
|
|
|
|