LAPTOP-OM1V99U2\永远de小亡灵 1 рік тому
батько
коміт
ad19f014e3

+ 1 - 1
ActionTowerDefense/Assets/Resources/Prefab/Player.prefab

@@ -965,7 +965,7 @@ MonoBehaviour:
   isTransfiguration: 0
   moveVec: {x: 0, y: 0}
   reviveTime: 0
-  totalReviveTime: 0
+  totalReviveTime: 10
   isBaseBtnOut: 0
   isClickBtnJump: 0
   isClickBtnRush: 0

+ 1 - 0
ActionTowerDefense/Assets/Scripts/PlayerController.cs

@@ -1332,6 +1332,7 @@ public class PlayerController : MoveCharacter
     }
     public void PlayerRevive()
     {
+        isRevive = false;
         bodyTrans.gameObject.SetActive(true);
         uiHp.transform.parent.gameObject.SetActive(true);
         rb.constraints = RigidbodyConstraints.FreezePositionZ | RigidbodyConstraints.FreezeRotation;