Procházet zdrojové kódy

Merge branch 'master' of https://github.com/Hex-Dragon/GMTK2022

= před 4 roky
rodič
revize
5063340395
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      Assets/Resources/Entities/Player.cs

+ 2 - 1
Assets/Resources/Entities/Player.cs

@@ -66,8 +66,9 @@ public class Player : EntityBase {
                 hp++;
             }
             RefreshHearts();
-        } else {
+        } else if (currentHealTime != 0f) {
             currentHealTime = 0f;
+            RefreshHearts();
         }
         // ×°Ìî
         if (InputM.GetKeyEvent(InputM.KeyType.Reload) && currentBullet < maxBullet && currentReloadDelay <= 0f) {