Exemple #1
0
    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;
    }
Exemple #2
0
 // Update is called once per frame
 void Update()
 {
     text.text = "(" + CellCounter.GetCount(countTag).ToString() + ")";
 }
Exemple #3
0
 public void Update()
 {
     isValid       = CellCounter.GetCount(cellTag) <= maxCount;
     image.enabled = isValid;
 }