Cant find my custom function to attach Event Trigger

It’s literally my first time using Unity, and I’m following a tutorial.
I’m trying to create a kind of “invisible joysitck” so when the player drags the finger across the screen the sprite moves accordingly with it.
I’ve created this scrip:
8464652--1124186--upload_2022-9-25_19-7-0.png
(I don’t think the content of the funtctions is relevant)

And then attached it to the invisible joystick (“MovementJoystick” in the hierarchy system):

But when I attach an Event Trigger component and try to bind, for example, PointerDown EVENT with PointerDown() MY FUNCTION, my function is not there:


(My custom functions arn’t in any of the drop-down menus, I wont post 4 screenshots to save space)

I’ve found forums about attatching the GameObject containing the script (to the EventTrigget) instead of the script itself, but not about this issue, can someone enlighten me?
Thanks in advance.

I’ve solved it, I had some errors in the script and didn’t notice it, I’m not used to errors shwoing only in the bottom of the screen.
Seems like if the script has any error in it, it won’t compile

Yeah, it sounds daft but when you’re typing in code, watch your spelling and grammar, the slightest typo and your code’ll not work.