public T Dequeue() { ItemPriorityKey <T> best = elements.PopFirst(); T bestItem = best.item; return(bestItem); }
public int CompareTo(ItemPriorityKey <T> obj) { float key2 = obj.priority; return(Mathf.FloorToInt(priority - key2)); }