Browse Source

Updated Statistics dependency

James Peret 2 years ago
parent
commit
35a108b1fa

+ 3 - 2
Runtime/AchievementBase.cs

@@ -3,7 +3,8 @@ using System;
 using System.Collections.Generic;
 using UnityEngine;
 using Sirenix.OdinInspector;
-using KairoEngine.Utilities.Statistics;
+using KairoEngine.Statistics;
+using StatisticsSystem = KairoEngine.Statistics.Statistics;
 
 namespace KairoEngine.Achievements
 {
@@ -28,7 +29,7 @@ namespace KairoEngine.Achievements
 
         public bool HasAchieved()
         {
-            var stat = Statistics.GetData(statisticTitle);
+            var stat = StatisticsSystem.GetData(statisticTitle);
             if(stat == null) return false;
             switch (statisticType)
             {

+ 3 - 2
Runtime/AchievementsController.cs

@@ -2,9 +2,10 @@ using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 using Sirenix.OdinInspector;
-using KairoEngine.Utilities.Statistics;
+using KairoEngine.Statistics;
 using KairoEngine.Core;
 using UniRx;
+using StatisticsSystem = KairoEngine.Statistics.Statistics;
 
 namespace KairoEngine.Achievements
 {
@@ -30,7 +31,7 @@ namespace KairoEngine.Achievements
         private void Start()
         {
             if(debug) Debug.Log("Initializing AchievementsController");
-            if(Statistics.instance == null) Debug.LogError("Missing Statistics component");
+            if(StatisticsSystem.instance == null) Debug.LogError("Missing Statistics component");
             if(library == null) 
             {
                 Debug.LogError("Missing Achievements Library on AchievementsController.\nPlease configure the Achievements module in the GameConfig file.");

+ 3 - 1
Runtime/KairoEngine.Achievements.asmdef

@@ -4,7 +4,9 @@
     "references": [
         "GUID:7e5ae6a38d1532248b4c890eca668b06",
         "GUID:165d83fc3bb2a4144925c85421871d8e",
-        "GUID:560b04d1a97f54a4e82edc0cbbb69285"
+        "GUID:560b04d1a97f54a4e82edc0cbbb69285",
+        "GUID:ca01279424a9a9144a1fea1b6910a36a",
+        "GUID:e048eeec9bdb9d30448017b829deb3f6"
     ],
     "includePlatforms": [],
     "excludePlatforms": [],