Я пытаюсь использовать приоритет в Unity с C#. В документации говорится, что она поддерживается в .net 6 в пространстве имен System.collections.generic .
Я пытался:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class Test : Monobehaviour
{
void Start()
{
var queue = new PriorityQueue();
}
}
< /code>
Но ошибка отброшена назад: < /p>
The type or namespace name 'PriorityQueue' could not be found (are
you missing a using directive or an assembly reference?)
[Assembly-CSharp]
Я пытаюсь использовать приоритет в Unity с C#. В документации говорится, что она поддерживается в .net 6 в пространстве имен System.collections.generic . Я пытался: [code]using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using TMPro;
public class Test : Monobehaviour { void Start() { var queue = new PriorityQueue(); } } < /code> Но ошибка отброшена назад: < /p>
The type or namespace name 'PriorityQueue' could not be found (are you missing a using directive or an assembly reference?) [Assembly-CSharp] [/code]