Answer by Priyanshu
Considering all the requirements for Collision to occur are fulfilled. Whenever an Object collides with the Object (with the script), OnCollisionEnter event will be called. To get a counter that counts...
View ArticleAnswer by Digital Phantom
You basically said it yourself in the comment. make an int variable (collisionCount) then in your collision code just add void OnCollisionEnter(Collision2D collision) { //Do whatever else you need to...
View ArticleAnswer by Priyanshu
Considering all the requirements for Collision to occur are fulfilled. Whenever an Object collides with the Object (with the script), OnCollisionEnter event will be called. To get a counter that counts...
View ArticleAnswer by Digital-Phantom
You basically said it yourself in the comment. make an int variable (collisionCount) then in your collision code just add void OnCollisionEnter(Collision2D collision) { //Do whatever else you need to...
View Article