The one object you got was the “other”, meaning ‘gameObject.name’ is the current script (and game object).
Take a moment to read this thread for how to post code properly : code tags
The one object you got was the “other”, meaning ‘gameObject.name’ is the current script (and game object).
Take a moment to read this thread for how to post code properly : code tags