|
@@ -2,6 +2,7 @@ using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
|
using UnityEngine;
|
|
|
using Sirenix.OdinInspector;
|
|
|
+using KairoEngine.Core;
|
|
|
|
|
|
namespace KairoEngine.SteamIntegration
|
|
|
{
|
|
@@ -53,8 +54,10 @@ namespace KairoEngine.SteamIntegration
|
|
|
playerName = Steamworks.SteamClient.Name;
|
|
|
var playerSteamId = Steamworks.SteamClient.SteamId;
|
|
|
if(showDebug) Debug.Log($"{playerName} ({playerSteamId})");
|
|
|
- if(useStats) stats.Start(steamStatsLibray);
|
|
|
- if(useAchievements) achievements.Start();
|
|
|
+ Timer.ExecuteRealTimeNotDisposable(1000, () => {
|
|
|
+ if(useStats) stats.Start(steamStatsLibray);
|
|
|
+ if(useAchievements) achievements.Start();
|
|
|
+ });
|
|
|
//PrintFriendsList();
|
|
|
}
|
|
|
catch ( System.Exception e )
|