I have a problem with the trigger enter. I put 2 collider, one of the main object and the second object. I popped “trigger” on the principal. But it does not work. I do not know where I’m wrong. This is a screen with code
function OnTriggerEnter(other:Collider)
{
print("Ok");
}
I noticed that the trigger does not work if I move the object. that is, I lastiera move through the object in the trigger area. When it does not work like never before?