hey guys, im making a 2d game for android, im moving an object and when it touch a box a i want some thing to happent, but it dosent seem to work.
code:
function OnCollisionEnter2D(coll: Collision2D) {
if (coll.gameObject.tag == "Origin")
{
Debug.Log ("4");
drawGUI = true;
}
}