About 'Coin Pickups'!

I felt this was a very straightforward lesson and enjoyed it.

Working on changing the game a little I want the player to be unable to see the exit until all coins have been collected. This was easy in my mind, I was adding a coinCounter to the AddToScore routine. It all works However I discovered there are times in the game where I get two hits instead of one on the trigger. I believe it is due to the player having two colliders on it.

What would be the best work around for this or am I trying to go a wrong direction in this change.?

Thanks I know it is outside of the course but am not sure the way the player is set up is best. Perhaps one of the colliders would be better on a separate object where the position matches the player transform. Other thought wouldbe perhaps have the feet colider (or the body) be on a child object of the player. I know both would require code changes just not sure what is best.

John P

PS I believe the 2nd trigger occurs when I jump down on a coint cauing the feet to go through the coin with the body.