public void TryStartGrow(PlantSettings plantSettings) { if (!_isGrowing) { PlantSettings = plantSettings; StartCoroutine(Growing()); } }
private void HandleInsertPlant(GameObject plantObject, PlantSettings plantSettings) { _plant = plantObject.GetComponent <Plant>(); _plant.OnGrowEnd += HandlePlantGrowed; _plant.TryStartGrow(plantSettings); }
public void Initialize(PlantSettings plantSettings) { _settings = plantSettings; }