public void AddSymbol( ProductionElement element ) { _set.Add( element ); if ( Terminal.Empty == element ) { _hasEmpty = true; } }
public void AddInProduction(ProductionElement element) { if (!_possibleProduction.Contains(element)) { throw new System.InvalidOperationException(); } _elementsInProgress.Enqueue(new InProduction(element, 0)); if (OnProductionChange != null) { OnProductionChange.Invoke(); } }
public void Present(ProductionElement element, UnityAction onClick) { Image.sprite = element.Icon; ProgressImage.fillAmount = 0; Button.onClick.AddListener(onClick); }
public FirstSet( ProductionElement element ) { _element = element; _set = null; _hasEmpty = false; }
public InProduction(ProductionElement element, float productionTime) { Element = element; ProductionTime = productionTime; }