Пример #1
0
    public void UpdateGrowth(bool raining)
    {
        Sprite newSprite = _instance.UpdateGrowth(raining, _vegetable.TimeToGrow, _vegetable.WaterTimer);

        if (newSprite != null)
        {
            _spriteRenderer.sprite = newSprite;
        }
    }