void UpdateSprite() { // Apply new sprite if ((int)fruitSize != curCellReference.cellValue) { fruitSize = (FruitSize)curCellReference.cellValue; image.sprite = GetSprite(); } }
public FruitDescription(FruitSize size, FruitColor color) { _size = size; _color = color; }