Unity выдаёт ошибку: Assets\Player.cs(19,39): error CS1061: 'Rigidbody' does not contain a definition for 'velosity' and no accessible extension method 'velosity' accepting a first argument of type 'Rigidbody' could be found (are you missing a using directive or an assembly reference?)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
[SerializeField] KeyCode KeyOne;
[SerializeField] KeyCode KeyTwo;
[SerializeField] Vector3 moveDirection;
private void FixedApdate()
{
if (Input.GetKey(KeyOne))
{
GetComponent<Rigidbody>().velosity += moveDirection;
}
if (Input.GetKey(KeyTwo))
{
GetComponent<Rigidbody>().velosity -= moveDirection;
}
}
}