Same script on various gameobjects

Asked

Viewed 86 times

1

I have four gameobjects on the screen (active) each with the same script, but renamed to not look exactly the same.

My problem is that when I call via touch one of them the other is who obeys the command. No logical sequence.

Simply one receives the commands of all and, when I destroy it, another receives the commands (of all also)

inserir a descrição da imagem aqui

  • 9

    You can [Edit] your question and show how the code is?

  • Select the Gameobject and take a look at the inspector, see if the inspector is related to the correct script for the same object. Mals ai, I could not comment, I do not have enough score to comment.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.