Не работает Input в C#
Делаю игру на Unity. В скрипте C# хочу написать такую строку кода, но Visual Studio почему-то не видит Input и GetAxis, хотя разработка игр с помощью Unity у меня в Visual Studio установленна. Подскажите, что делать?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
float h = Input.GetAxis("Horizontal");
}
}