|
|
@@ -40,10 +40,14 @@ public class ESpirits_KiteNinja : Enemy
|
|
|
else
|
|
|
{
|
|
|
Init();
|
|
|
- transform.position += new Vector3(
|
|
|
+ Vector3 revivesPos = transform.position;
|
|
|
+ revivesPos.y = flyHeight;
|
|
|
+ revivesPos += new Vector3(
|
|
|
Random.Range(-revivesPos.x, revivesPos.x),
|
|
|
Random.Range(-revivesPos.y, revivesPos.y),
|
|
|
0);
|
|
|
+ flyHeight = revivesPos.y;
|
|
|
+ transform.position = revivesPos;
|
|
|
}
|
|
|
return;
|
|
|
case CharacterState.Attack:
|