|
@@ -692,8 +692,15 @@ public class Enemy : MoveCharacter
|
|
|
dashEffect.canHit = false;
|
|
dashEffect.canHit = false;
|
|
|
rb.velocity = Vector3.zero;
|
|
rb.velocity = Vector3.zero;
|
|
|
bodyTrans.rotation = Quaternion.Euler(Vector3.zero);
|
|
bodyTrans.rotation = Quaternion.Euler(Vector3.zero);
|
|
|
- transform.position = new Vector3(transform.position.x,
|
|
|
|
|
- foot.trigGroundList[0].transform.position.y, 0);
|
|
|
|
|
|
|
+ if (foot.trigGroundList.Count == 0)
|
|
|
|
|
+ {
|
|
|
|
|
+ transform.position = new Vector3(transform.position.x, -1, 0);
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ transform.position = new Vector3(transform.position.x,
|
|
|
|
|
+ foot.trigGroundList[0].transform.position.y, 0);
|
|
|
|
|
+ }
|
|
|
break;
|
|
break;
|
|
|
case CharacterState.FinishRush:
|
|
case CharacterState.FinishRush:
|
|
|
time = 0;
|
|
time = 0;
|