Hi,
I’m making a game for android and now i have a problem. 
I have a lot of objects (all clones created during the game) very near together. And i need to do a script that do this:
When i touch one object it must change his position, only the object i have touched and not all the near objects.
I can’t write a script that can “select” an object when i touch it.
I’m using C# and i’m blocked at this point.
If you need more information ask me.
Please, I need your help.
Thanks.
i think a very simple OnTriggerEnter will work
void OnTriggerEnter (Collider Enemy)
{
if (Enemy.tag == "Player")
{
//something like
gameObject.transform.position = some Vector3 position
}
}
make sure the tag on ur charatcer i set to ‘Player’ and the collider ‘is Trigger’ is checked.
Im guessing its a prefab so u can attach the script to the prefab, and the OnTriggerEnter will only change the position of the object it hit cause the OnTriggerEnter event only take effect to the object u’ve hit.