I am working on a project in Unity 4.6.1f1 and I was wondering how can I make a cube touch another cube to go to the next level (the image below)?
!
EDIT: I made a script and put it on the purple cube then enabled "is trigger" on the purple cube, but the blue cube goes right through it.
Inspector:
And the code:
EDIT 5/15/15: I edited my script and I was wondering if I'm doing something wrong.