8 lines
222 B
GDScript
8 lines
222 B
GDScript
extends InteractableAction
|
|
class_name WaterPlantAction
|
|
|
|
func action(_p: Player, i : Interactable):
|
|
if i is Plant:
|
|
i.watered = true
|
|
else :
|
|
printerr("No plant selected or interactable is not a plant") |