Explorar el Código

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

LAPTOP-OM1V99U2\永远de小亡灵 hace 1 año
padre
commit
384f2c6348

+ 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()
     {