|
|
@@ -98,7 +98,6 @@ public class ESpirits_Assassin : Enemy
|
|
|
directionToTarget =
|
|
|
(playerController.transform.position + Vector3.up - aimPrefab.transform.position).normalized;
|
|
|
angleToTarget = Mathf.Atan2(directionToTarget.y, directionToTarget.x) * Mathf.Rad2Deg;
|
|
|
- aimPrefab.transform.rotation = Quaternion.Euler(0, 0, angleToTarget);
|
|
|
time += Time.deltaTime;
|
|
|
if(directionToTarget.x > 0 && bodyTrans.localScale.x > 0
|
|
|
|| directionToTarget.x <0 && bodyTrans.localScale.x < 0)
|