Преглед на файлове

修复中了漂浮术后施放隐身,隐身结束后闪回漂浮地点bug

LAPTOP-OM1V99U2\永远de小亡灵 преди 1 година
родител
ревизия
384f2c6348
променени са 1 файла, в които са добавени 8 реда и са изтрити 1 реда
  1. 8 1
      ActionTowerDefense/Assets/Scripts/Spirits/Spirits_Invisible.cs

+ 8 - 1
ActionTowerDefense/Assets/Scripts/Spirits/Spirits_Invisible.cs

@@ -36,6 +36,13 @@ public class Spirits_Invisible : MonoBehaviour
         playerController.uiHp.gameObject.SetActive(false);
         playerController.isInvisible = true;
         playerController.mp += addMp;
+        if (playerController.floatState != 0)
+        {
+            playerController.floatState = 3;
+            player.transform.localEulerAngles = new Vector3(0, 0, 0);
+            
+        }
+        
         normalSpeed = playerController.moveSpeed;
         for (int i = 0;i < playerController.beTargetCharacter.Count; i++)
         {
@@ -85,7 +92,7 @@ public class Spirits_Invisible : MonoBehaviour
     }
     public void BackToPlayer()
     {
-
+        playerController.ani.Play("fall",0,0);
     }
     void AttackJ()
     {