|
@@ -89,21 +89,16 @@ public class ESpirits_Assassin : Enemy
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
|
|
+ default:
|
|
|
|
|
+ Debug.LogError("ÓÐbugµ¼Ö´̿Í״̬³ö´í");
|
|
|
|
|
+ return;
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
case CharacterState.Attack:
|
|
case CharacterState.Attack:
|
|
|
switch (eSpiritsState)
|
|
switch (eSpiritsState)
|
|
|
{
|
|
{
|
|
|
case ESpiritsState.Ready:
|
|
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;
|
|
time += Time.deltaTime;
|
|
|
- if(directionToTarget.x > 0 && bodyTrans.localScale.x > 0
|
|
|
|
|
- || directionToTarget.x <0 && bodyTrans.localScale.x < 0)
|
|
|
|
|
- {
|
|
|
|
|
- Turn();
|
|
|
|
|
- }
|
|
|
|
|
if(time > readyTime)
|
|
if(time > readyTime)
|
|
|
{
|
|
{
|
|
|
time = 0;
|
|
time = 0;
|