public void Update() { var count = CellCounter.GetCount(cellTag); isValid = count >= minCount; isFailing = count == 0; image.sprite = isValid ? successSprite : isFailing ? failedSprite : null; image.enabled = image.sprite != null; }
// Update is called once per frame void Update() { text.text = "(" + CellCounter.GetCount(countTag).ToString() + ")"; }
public void Update() { isValid = CellCounter.GetCount(cellTag) <= maxCount; image.enabled = isValid; }