Browse Source

Upgraded GameModule layout

James Peret 2 years ago
parent
commit
195e9abd10
2 changed files with 7 additions and 7 deletions
  1. 1 1
      Runtime/AchievementsController.cs
  2. 6 6
      Runtime/AchievementsModule.cs

+ 1 - 1
Runtime/AchievementsController.cs

@@ -60,7 +60,7 @@ namespace KairoEngine.Achievements
 
         public void CheckAchievements()
         {
-            if(debug) Debug.Log($"Checking achievements ({achievementsStatus.Count})");
+            //if(debug) Debug.Log($"Checking achievements ({achievementsStatus.Count})");
             if(library == null) return;
             for (int i = 0; i < achievementsStatus.Count; i++)
             {

+ 6 - 6
Runtime/AchievementsModule.cs

@@ -12,12 +12,12 @@ namespace KairoEngine.Achievements
     public class AchievementsModule : GameModuleBase
     {
         public override string name => "Achievements Module";
-        [FoldoutGroup("@name")] public bool CheckOnStart = true;
-        [FoldoutGroup("@name")] public bool checkOnInterval = true;
-        [FoldoutGroup("@name"), ShowIf("@checkOnInterval"), SuffixLabel("ms")] public int checkInterval = 3000;
-        [FoldoutGroup("@name"), SuffixLabel("ms")] public int startDelay = 3000;
-        [FoldoutGroup("@name")] public bool debug = false;
-        [FoldoutGroup("@name"), NonSerialized, ShowInInspector, InlineEditor(InlineEditorObjectFieldModes.Boxed)] public AchievementsLibrary library;
+        public bool CheckOnStart = true;
+        public bool checkOnInterval = true;
+        [ShowIf("@checkOnInterval"), SuffixLabel("ms")] public int checkInterval = 3000;
+        [SuffixLabel("ms")] public int startDelay = 3000;
+        public bool debug = false;
+        [NonSerialized, ShowInInspector, InlineEditor(InlineEditorObjectFieldModes.Boxed)] public AchievementsLibrary library;