WGL 2 місяців тому
батько
коміт
fc04593b02

+ 3 - 8
ActionTowerDefense/Assets/Scripts/Spirits/ESpirits_Assassin.cs

@@ -89,21 +89,16 @@ public class ESpirits_Assassin : Enemy
                             }
                         }
                         break;
+                    default:
+                        Debug.LogError("ÓÐbugµ¼Ö´̿Í״̬³ö´í");
+                        return;
                 }
                 break;
             case CharacterState.Attack:
                 switch (eSpiritsState)
                 {
                     case ESpiritsState.Ready:
-                        directionToTarget = 
-                            (playerController.transform.position + Vector3.up - aimPrefab.transform.position).normalized;
-                        angleToTarget = Mathf.Atan2(directionToTarget.y, directionToTarget.x) * Mathf.Rad2Deg;
                         time += Time.deltaTime;
-                        if(directionToTarget.x > 0 && bodyTrans.localScale.x > 0 
-                            || directionToTarget.x <0 && bodyTrans.localScale.x < 0)
-                        {
-                            Turn();
-                        }
                         if(time > readyTime)
                         {
                             time = 0;