How to set a game-over scene when an object hits another?

I have 6 walls and a ball the objective is to dodge the walls and get to the bottom,how do i set it so when the ball hits the wall its game-over and when the ball passes a certain point they have completed the level?
Thanks in advance!

Hi there!

Firstly I suggest looking up some basic tutorials. YouTube is a great place to look for some! These tutorials will teach you exactly this. Also, I suggest researching using your search engine of choice (mine is google) to find solutions to your problems. It’s a lot faster work flow wise to find a solution rather than waiting for someone to reply to your question here.

I’m not going to do your work for you. But I’ll nudge you in the right direction. Head to the links bellow to read up on some basic API you can use.

http://unity3d.com/learn/tutorials/modules/beginner/scripting/if-statements

Tutorials:

http://unity3d.com/learn

Have fun learning Unity! :slight_smile: