Пример #1
0
    public T Dequeue()
    {
        ItemPriorityKey <T> best = elements.PopFirst();
        T bestItem = best.item;

        return(bestItem);
    }
Пример #2
0
    public int CompareTo(ItemPriorityKey <T> obj)
    {
        float key2 = obj.priority;

        return(Mathf.FloorToInt(priority - key2));
    }