예제 #1
0
    private void Walk()
    {
        //Check for walking
        moveVector = new Vector3(rewiredPlayer.GetAxis2DRaw("Horizontal", "Vertical").x, rewiredPlayer.GetAxis2DRaw("Horizontal", "Vertical").y, 0);

        transform.position += Vector3.ClampMagnitude(moveVector, 1) * Speed * Time.deltaTime;
    }