We’ve been missing a way for the player to interact with the scene, so let’s fix that now.
We’ll build a new script that shows how to fire off some code when you click on a game object with your mouse in the scene. Again, our old friend Destroy() pays a visit.
Interactivity – DestroyOnClick (9:40)
Back to the Beginning 2D Game Development Dashboard