|
@@ -121,7 +121,8 @@ public class TornadoFan : AttackTrigger
|
|
|
{
|
|
{
|
|
|
lerpValue = lerpValueMin;
|
|
lerpValue = lerpValueMin;
|
|
|
}
|
|
}
|
|
|
- moveCharacter.transform.position = Vector3.Lerp(nowPos, targetPoss[i], lerpValue * Time.deltaTime);
|
|
|
|
|
|
|
+ //moveCharacter.transform.position = Vector3.Lerp(nowPos, targetPoss[i], lerpValue * Time.deltaTime);
|
|
|
|
|
+ moveCharacter.rb.velocity = (targetPoss[i] - nowPos).normalized * lerpValue;
|
|
|
//moveCharacter.transform.position = Vector3.Lerp(nowPos, targetPos, lerpValue * Time.deltaTime);
|
|
//moveCharacter.transform.position = Vector3.Lerp(nowPos, targetPos, lerpValue * Time.deltaTime);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|