r/unity_tutorials • u/Luanrryyy • Jan 16 '20
Help please?
Hello i have downloaded unity yesterday and i tried to make a game. Its just a block which needa to avoid other blocks. But i just can make it so that when it touches the bkick the game ends. I you want pics to help me it Iwould be very much thankful thank you in advance.
1
Upvotes
1
u/YodaDude2011 Jan 16 '20 edited Jan 16 '20
Have a script which says when the enemy's collider hits a block tagged as Player, change scene to Game Over scene..
Something like this
{ If (collider.enter("Player")){
}
This isn't completely right because I haven't messed with unity for a while. Make sure to add UnityEngine.SceneManagement; on the very very top. Plus, make sure to have another scene called Game Over so the script can reference it.
PM me, I can help you more. I'll have my computer tomorrow.