Exemple #1
0
        public void AddSymbol( ProductionElement element )
        {
            _set.Add( element );

            if ( Terminal.Empty == element )
            {
                _hasEmpty = true;
            }
        }
Exemple #2
0
    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);
 }
Exemple #4
0
 public FirstSet( ProductionElement element )
 {
     _element = element;
     _set = null;
     _hasEmpty = false;
 }
Exemple #5
0
 public InProduction(ProductionElement element, float productionTime)
 {
     Element        = element;
     ProductionTime = productionTime;
 }