-
OnCollisionEnter
Can be used to detect collisions with other gameobjects, and behave based on an if statement.
-
My use of OnCollisionEnter in Unity
When a black sphere hits a block, the script deletes the block.
Can be used to detect collisions with other gameobjects, and behave based on an if statement.
When a black sphere hits a block, the script deletes the block.