예제 #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));
    }