|
|
@@ -82,6 +82,8 @@ public class Trans_Float : MonoBehaviour
|
|
|
{
|
|
|
pastTime += Time.deltaTime;
|
|
|
controller.canMove = false;
|
|
|
+ controller.ChangeState(CharacterState.Idle);
|
|
|
+ //controller.rb.velocity = new Vector3(0, 0, 0);
|
|
|
if (!once)
|
|
|
{
|
|
|
isK = true;
|
|
|
@@ -97,6 +99,7 @@ public class Trans_Float : MonoBehaviour
|
|
|
}
|
|
|
if(isK && !controller.isinputK)
|
|
|
{
|
|
|
+ pastTime = 0;
|
|
|
isK = false;
|
|
|
controller.canMove = true;
|
|
|
once = false;
|