Hello !
I really would have preferred not to bug anyone about this problem of mine, but I really am desperate about it now.
Alright, so thank you in advance for all the help you guys will provide me.
Before explaining the problem, I simply want to let you guys no I have little to none experience in Unity and Game Development altho I am a web developer. A friend of mine and I wanted to try it out using the incredible 2d Toolkit asset which is working just fine as of now.
The context of my Proof of Concept is as follow : I have a scene with 3 Sprites on it. Each one of it has a Mesh Collider and the Player has a Rigid Body. The player can move around (in a 2D manner) and my next step would have been to make impossible for the player to walk over the other sprites.
I’ve clicked on the ‘is Trigger’ option of the Box Collider panel and coded (in C#) the onTrigger events as follow :
void OnTriggerEnter(Collider trig)
{
Debug.Log("Enter");
}
void OnTriggerStay(Collider trig)
{
Debug.Log ("Stay");
}
void OnTriggerExit(Collider trig)
{
Debug.Log("Leave");
}
Everything works fine if my character enters and leaves one of the Sprite. However, if he tries to enter it again, or enter another one, none of the trigger are called again.
Trying to find a solution over the Net, but nothing could explain explicitly what my problem might be.
Thank you