Example #1
0
    public void Excute(CharacterMove t)
    {
        Vector3 direction = t.MoveDir;

        direction *= t.speed * t.translateSpeed;
        t.WalkAnimatorSet(t.InputDir);
        if (!t.controller.isGrounded)
        {
            t.stackGravity += t.gravity * Time.deltaTime;
        }
        else
        {
        }
        direction.y -= t.stackGravity;
        t.controller.Move(direction * Time.deltaTime);
        t.RotateHorizontal();
    }