|
|
@@ -16,7 +16,11 @@ public class ESpirits_Invisible : MonoBehaviour
|
|
|
public InvisibleState state;
|
|
|
public Rigidbody rb;
|
|
|
public float moveSpeed;
|
|
|
- public float upMoveSpeed;
|
|
|
+ public float findSoulSpeed;
|
|
|
+ public float minSpeed;
|
|
|
+ public float upSpeed;
|
|
|
+ [HideInInspector]
|
|
|
+ public float boomSpeed;
|
|
|
public float altitude;
|
|
|
public float randomRageY;
|
|
|
public float randomRageX;
|
|
|
@@ -130,7 +134,7 @@ public class ESpirits_Invisible : MonoBehaviour
|
|
|
break;
|
|
|
}
|
|
|
targetPos = targetSoul.transform.position;
|
|
|
- Goto(targetPos, upMoveSpeed);
|
|
|
+ Goto(targetPos, findSoulSpeed);
|
|
|
|
|
|
break;
|
|
|
case InvisibleState.FindPlayer:
|
|
|
@@ -140,7 +144,8 @@ public class ESpirits_Invisible : MonoBehaviour
|
|
|
ChangeState(InvisibleState.Boom);
|
|
|
break;
|
|
|
}
|
|
|
- Goto(enemy.targetCharacter.transform.position + Vector3.up*0.5f, upMoveSpeed);
|
|
|
+ boomSpeed += Time.deltaTime * upSpeed;
|
|
|
+ Goto(enemy.targetCharacter.transform.position + Vector3.up*0.5f, boomSpeed);
|
|
|
break;
|
|
|
case InvisibleState.Boom:
|
|
|
ChangeState(InvisibleState.Normal);
|
|
|
@@ -183,6 +188,7 @@ public class ESpirits_Invisible : MonoBehaviour
|
|
|
FindSoul();
|
|
|
break;
|
|
|
case InvisibleState.FindPlayer:
|
|
|
+ boomSpeed = minSpeed;
|
|
|
enemy.ChosePlayer();
|
|
|
break;
|
|
|
case InvisibleState.Boom:
|