|
im sure all you know what this question is going to be lol, sorry for repeating. Anyone kind enuf to give a quick reminder as to why the code runs when touching anywhere on the screen? it shud run when i touch the gameobject with the collider=="Button"
(comments are locked)
|
|
I did a little check up on your code, assuming your tagged object is a gameObject (which it should be) then this should work I just broke up the act of finding the tagged object and the act of returning weather it has been hit or not for elegance and hopefully to get the code working. let me know. BIG FAT VIRTUAL KISS! I LOVE YOU!!!!
May 01 '12 at 05:16 PM
samz
one second. i got 2 objects. when touched they are deleted. problem is you always have to touch object1 and delete before you can touch and delete object2 :S whats the deal with that? i want the script to delete which ever object is touched
May 01 '12 at 06:57 PM
samz
(comments are locked)
|
|
Using GameObject.FindWithTag is returning the first guy it finds, you could use FindGameObjectsWithTag, which will return a list of all objects with that tag: var objects = GameObject.FindGameObjectsWithTag("Button"); then use 0o0o0o0o thank youu
May 01 '12 at 06:59 PM
samz
(comments are locked)
|
