LAPTOP-OM1V99U2\永远de小亡灵 преди 1 година
родител
ревизия
ad19f014e3
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 1 1
      ActionTowerDefense/Assets/Resources/Prefab/Player.prefab
  2. 1 0
      ActionTowerDefense/Assets/Scripts/PlayerController.cs

+ 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;