I new to Unity and need a little help. I have been following this tutorial
https://www.youtube.com/watch?v=Sqb-Ue7wpsI
and im around 38:26 and the unity console tells me there is an error named (The tutorial stops working for me)
Assets\Scripts\Player scripts\Playermovement.cs(10,13): error CS0104: 'Vector3' is an ambiguous reference between 'System.Numerics.Vector3' and 'UnityEngine.Vector3'
if you know what i have done wrong please tell me
public class Playermovement : MonoBehaviour
{
private CharacterController character_Controller;
private Vector3 move_Direction;
public float Speed = 5f;
private float gravity = 20f;
public float jump_Force = 10f;
private float vertical_Velocity;
public System.Numerics.Vector3 Move_Direction { get => move_Direction; set => move_Direction = value; }
private void Awake()
{
character_Controller = GetComponent();
}
void Update()
{
MoveThePlayer();
}
void MoveThePlayer() {
Move_Direction = new Vector3(Input.GetAxis("Horizontal"), 0f, Input.GetAxis("vertical"));
print("HORIZONTAl: " + Input.GetAxis("Horizontal"));
} // move player
} // class
↧