Collision2D not works properly
Currently I am working on 2D Platformer game and there is a bug that gives me headache. Basicly, if our player, collide to an enemy object he dies. on the other hand if he collect a coin, that means he finished the level. According to this situations, the code actives winPanel, or losePanel. But I dont know why, code only works on lose situations, does not active winPanel.