private void Update() { if (crop.HasCrop()) { if (crop.state == CropState.Planted) { bool isDone = crop.Grow(Time.deltaTime); if (isDone) { UpdateSprite(); } else { WaterState state = crop.Dry(Time.deltaTime); if (state == WaterState.Dry) { waterIndicator.SetActive(true); } else if (state == WaterState.Dead) { UpdateSprite(); waterIndicator.SetActive(false); } } } } if (addPlant) { temp = null; } }