|
|
@@ -135,8 +135,8 @@ public class MoveCharacter : Character
|
|
|
transform.position = new Vector3(origPos.x + backSpeed * (curTime - pastTime), height, origPos.z);
|
|
|
if (curTime >= floatTime)
|
|
|
{
|
|
|
- transform.rotation = Quaternion.Lerp(transform.rotation, Quaternion.Euler(0, 0, 0), 0.02f);
|
|
|
- if (transform.localEulerAngles.z >= -5f && transform.localEulerAngles.z <= 5f)
|
|
|
+ transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.Euler(0, 0, 0), 20f * Time.deltaTime);
|
|
|
+ if (transform.localEulerAngles.z >= -15f && transform.localEulerAngles.z <= 15f)
|
|
|
{
|
|
|
transform.localEulerAngles = new Vector3(0, 0, 0);
|
|
|
floatState = 3;
|