Ошибка 'Vector2' is an ambiguous reference between 'UnityEngine.Vector2' and 'System.Numerics.Vector2'
Assets/Scripts/New_wall.cs(10,5): error CS0104: 'Vector2' is an ambiguous reference between 'UnityEngine.Vector2' and 'System.Numerics.Vector2'
помогите
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using UnityEngine;
public class New_wall : MonoBehaviour
{
public float speed = 8f;
Vector2 direction;
Rigidbody2D rigidbody;
// Start is called before the first frame update
void Start()
{
rigidbody = GetComponent<Rigidbody2D>();
}
// Update is called once per frame
void Update()
{
if (Input.GetKey(KeyCode.W) || Input.GetKey(KeyCode.UpArrow))
{
direction = Vector2.up;
}
else if (Input.GetKey(KeyCode.S) || Input.GetKey(KeyCode.DownArrow))
{
direction = Vector2.down;
}
else
{
direction = Vector2.zero;
}
if (direction.x * direction.x + direction.y * direction.y != 0)
{
rigidbody.AddForce(direction * speed);
}
}
}
Источник: Stack Overflow на русском