Browse Source

Fixed a bug in Steam Manager and another in Stats

James Peret 2 years ago
parent
commit
266de0cedd
4 changed files with 7 additions and 4 deletions
  1. 4 1
      Readme.md
  2. 1 1
      Runtime/SteamworksManager.cs
  3. 1 1
      Runtime/SteamworksStats.cs
  4. 1 1
      package.json

+ 4 - 1
Readme.md

@@ -1,4 +1,4 @@
-# 📦 KairoEngine.SteamIntegration.v0.2.8
+# 📦 KairoEngine.SteamIntegration.v0.2.9
 
 Kairoengine Steam Integration library.
 
@@ -14,6 +14,9 @@ Kairoengine Steam Integration library.
 
 ### 📄Changelog
 
+##### v0.2.9
+- Fixed a bug in Steam Manager and another in Stats
+
 ##### v0.2.8
 - Changed Steam stat to first broadcast stats and then listen for changes
 

+ 1 - 1
Runtime/SteamworksManager.cs

@@ -49,8 +49,8 @@ namespace KairoEngine.SteamIntegration
             try
             {
                 Steamworks.SteamClient.Init( appId, true );
-                RefreshStats();
                 hasInitialized = true;
+                RefreshStats();
                 playerName = Steamworks.SteamClient.Name;
                 var playerSteamId = Steamworks.SteamClient.SteamId;
                 if(showDebug)  Debug.Log($"{playerName} ({playerSteamId})");

+ 1 - 1
Runtime/SteamworksStats.cs

@@ -19,10 +19,10 @@ namespace KairoEngine.SteamIntegration
 
         public void Start(SteamworksStatLibrary steamStatsLibrary) 
         { 
+            if(steamStats == null) steamStats = steamStatsLibrary;
             Timer.ExecuteRealTimeNotDisposable(2000, () => 
             {
                 if(broadcastStatsOnStart) BroadcastStats();
-                if(steamStats == null) steamStats = steamStatsLibrary;
                 if(listenForStatisticsEvents)
                 {
                     for (int i = 0; i < steamStats.library.Count; i++)

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
     "name": "at.kairoscope.kairoengine.steam-integration",
     "displayName": "KairoEngine Steam Integration",
-    "version": "0.2.8",
+    "version": "0.2.9",
     "unity": "2020.3",
     "description": "KairoEngine module for integrating Steamworks services",
     "dependencies": {