public void tick() { if (floorQueue.Count > 0) { waiting = false; goToFloor(floorQueue.Peek()); checkForDropOffs(); } else if (contents.Count > 0) { waiting = false; addFloorToQueue(FloorSpaceManager.convertPositionToFloor(contents[0].GetComponent <Character>().currentGoal.y)); } else { floorQueue.ClearHash(); waiting = true; } }