Hello Everyone,
I’m in the process of making a 2D iOS game and have run into some trouble. I’ve searched everywhere I can think of for an answer or advice to no avail.
In my game, a dynamic number of prefabs are instantiated throughout the scene, and I need to be able to touch one, and drag it along the x-axis. The problem is, if I use a raycast to find a gameobject using a tag, or a gameobject with a name, or if I declare a gameobject as a variable, or use a transform it will move all of the clones at once, all the clones will fly to my finger and group together. I need to be able to touch any clone and move it by itself, then move on and touch another and move that by itself.
Any help or advice would be greatly appreciated, I’ve thrown out all my scripts and I’m all out of ideas on how to make this work. Thanks in advance.