public void IncreaseErrorCount(int _i) { errorCount += _i; if (errorCount > 3) { status = workOrderStatus.Error; } }
public WorkOrder(GameObject _requestedGo, Vector3 _locOfOrder, RessourcesController _rC, float _amount, int _num) { requestor = _requestedGo; locationOfOrder = _locOfOrder; resController = _rC; typeOfOrder = _rC.Type; status = workOrderStatus.Queue; number = _num; errorCount = 0; amount = _amount; if (amount <= 0) { Debug.LogError("Error amount < 0:" + amount); } }
public void SetInactive() { status = workOrderStatus.Finish; }