|
|
@@ -35,7 +35,7 @@ public class Enemy : MoveCharacter
|
|
|
|
|
|
public float attackRatio;
|
|
|
public float maxMoveSpeed, minMoveSpeed;
|
|
|
-
|
|
|
+ public float runSpeed;
|
|
|
public int dropSoul = 1;
|
|
|
public GameObject soulPrefab;
|
|
|
public float soulStartSpeed = 5f;
|
|
|
@@ -305,7 +305,7 @@ public class Enemy : MoveCharacter
|
|
|
if (leftDir.x > 0.3f)
|
|
|
{
|
|
|
//rb.velocity += Vector3.right * moveAcc * Time.deltaTime;
|
|
|
- rb.velocity = Vector3.right * rushSpeed;
|
|
|
+ rb.velocity = Vector3.right * runSpeed;
|
|
|
//if (rb.velocity.x > maxMoveSpeed)
|
|
|
//{
|
|
|
// rb.velocity = new Vector3(maxMoveSpeed, rb.velocity.y, rb.velocity.z);
|
|
|
@@ -318,7 +318,7 @@ public class Enemy : MoveCharacter
|
|
|
else if (leftDir.x < -0.3f)
|
|
|
{
|
|
|
//rb.velocity -= Vector3.right * moveAcc * Time.deltaTime;
|
|
|
- rb.velocity = Vector3.left * rushSpeed;
|
|
|
+ rb.velocity = Vector3.left * runSpeed;
|
|
|
//if (rb.velocity.x < -maxMoveSpeed)
|
|
|
//{
|
|
|
// rb.velocity = new Vector3(-maxMoveSpeed, rb.velocity.y, rb.velocity.z);
|