Hi everyone!
I have some problem with my objects interactive.
I had one sprite. Then i made a copy of this sprite. In result 1st sprite has to catches up a 2nd, but when they meet each other nothing happens.
I attach to 2nd sprite this code
#pragma strict
function OnCollisionEnter2D(info: Collision2D)
{
Debug.Log ("Hello2");
if (info.gameObject.name == "p[43336-снимок-экрана-2015-03-25-в-213359.png|43336]layer")
Debug.Log ("Hello");
}
But i have nothing in my Console output So I need yours help.
I attached a screenshots where you can see my settings to these sprites. Thanks a lot. Have a nice day.
1 Screen: inspector of “player”
2 Screen: left: my hierarchy, right: inspector of separate parts of my player.
[43337-снимок-экрана-2015-03-25-в-213610.png|43337]