Browse Source

Fixed UI Animator not running when game was paused

jamesperet 2 năm trước cách đây
mục cha
commit
20c109e15f
3 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 1 1
      Readme.md
  2. 1 1
      Runtime/UiAnimator.cs
  3. 1 1
      package.json

+ 1 - 1
Readme.md

@@ -1,4 +1,4 @@
-# 📦 KairoEngine.UI.v0.1.4
+# 📦 KairoEngine.UI.v0.1.5
 
 The **UI** package contains the ``UiSystem`` component and the ``UiSystemModule``. The module loads the Ui System in place which manages canvases with UI data. The system now which canvases are enabled and has a global toggle for all the game UI.
 

+ 1 - 1
Runtime/UiAnimator.cs

@@ -65,7 +65,7 @@ namespace KairoEngine.UI
             if(showing) SwapDirection();
             Animate();
             float totalTime = (delay + animationTime + disableDelay) * 1000;
-            Timer.Execute(totalTime, () => {
+            Timer.ExecuteRealTime(totalTime, () => {
                 SwapDirection();
                 if(disableObjectOnEnd && !cancelDisable) 
                 {

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
     "name": "at.kairoscope.kairoengine.ui",
     "displayName" : "KairoEngine UI",
-    "version": "0.1.4",
+    "version": "0.1.5",
     "unity": "2020.3",
     "description": "User Interface library for kairoEngine",
     "repository": {