public void GoUp() { Debug.Log("Up"); var dispatch = _dispatchManager.ReturnDispatchThatHostOrder(_order); if (dispatch == null) { return; } dispatch.IncreaseOrderPriority(_order); //order from all Heavy Loaders var heavys = BuildingController.FindAllStructOfThisType(H.HeavyLoad); for (int i = 0; i < heavys.Count; i++) { heavys[i].Dispatch1.IncreaseOrderPriority(_order); } //so it repositions oldAmt = -1000; _buildingWindow.ResetShownInventory(); }
public void GoUp() { Debug.Log("Up"); var dispatch = _dispatchManager.ReturnDispatchThatHostOrder(_order); if (dispatch == null) { return; } dispatch.IncreaseOrderPriority(_order); //so it repositions oldAmt = -1000; _buildingWindow.ResetShownInventory(); }