constant error "timer has no receiver"

I am trying to make a program so when the my player touches an object, it says, “you added time” and adds two seconds to the time.

here is the script attached to the cube that I am trying to get to activate this

this is the script to receive it attached to the same game object:

Here is the message I am sending:

The message is sending, but I get an error that it has no receiver. I can’t even get it to print “you added time”.

I have another message that works, so I am not sure what is going on. Thanks for any help, I am new to unity and loving it! (aside from error messages :slight_smile: )

This is scripting relevant.

This error message comes when you use SendMessage to send a message to a game object / component…but this game object, or this component, has any message of the same name you wrote.

If component : if no such function present, error message.
If game object, if no such function present in any of all of its scripts, error message.

No such function as “Timer” in the game object.

but the function “Timer” is in my timer script attached to a game object. It seems like it should work.

No, the function “timer” is in your timer script. There’s no function “Timer”.

Capitalization is important, yo. :slight_smile:

Thanks guys, I realized that I was sending my message to only one game object when what I really wanted to do was send it to all my game objects.