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 )
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.