2D character not moving. Console shows no errors
I couldn't find any mistakes in this code. if there aren't any mistakes in the code, please let me know what's wrong.
```
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
public float speed = 5;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
float h = Input.GetAxis("Horizontal");
float v = Input.GetAxis("Vertical");
Vector2 pos = transform.position;
pos.x += h * Time.deltaTime;
pos.y += v * Time.deltaTime;
transform.position = pos;
}
} // class
```