Hello!
I just want to ask why in this case the "==" operator doesn't work but the "is" operator does:
not working:
func _on_Balloon_input_event(viewport, event, shape_idx):
if event == InputEventScreenTouch:
if event.pressed:
print("Test")
working:
func _on_Balloon_input_event(viewport, event, shape_idx):
if event is InputEventScreenTouch:
if event.pressed:
print("Test")
Maybe I'm missing something?
Thanks!