untitled-plant-game/Tools/WateringCan.gd
2021-12-06 03:12:54 +01:00

12 lines
233 B
GDScript

extends TextureButton
var watering = false
func _on_WateringCan_pressed():
watering = !watering
if watering:
$Timer.start(0.1)
$WaterParticles.emitting = true
if !watering:
$Timer.stop()
$WaterParticles.emitting = false