mirror of
https://git.kittycat.homes/BatHeartTiger/untitled-plant-game.git
synced 2024-08-15 03:16:27 +00:00
stop watering if plant has enough water
This commit is contained in:
parent
2abfa54906
commit
cc347d3766
10 changed files with 56 additions and 9 deletions
|
@ -7,6 +7,12 @@ func _on_WateringCan_pressed():
|
|||
$Timer.start(0.1)
|
||||
$WaterParticles.emitting = true
|
||||
if !watering:
|
||||
$Timer.stop()
|
||||
$WaterParticles.emitting = false
|
||||
stop_watering()
|
||||
|
||||
func on_enough_water():
|
||||
watering = false
|
||||
stop_watering()
|
||||
|
||||
func stop_watering():
|
||||
$Timer.stop()
|
||||
$WaterParticles.emitting = false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue