Beispiel #1
0
 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);
 }
Beispiel #3
0
 public void Initialize(PlantSettings plantSettings)
 {
     _settings = plantSettings;
 }