Hi all! I am working on a game ball and I have put coins to be collected by the ball in the way. Once the ball hits the coin the coin gets destroyed and player gets points. Now once the game is over I have a GUI that asks user whether he wants to try again. Now if the user continue playing the game without exiting it how do I re-create all the coins that were scored by the user in the previous game he played?
1 Answer
1use ----> Application.loadlevel and simply pass the current level name or index to load it and you are all ready to go …check this for syntex ----- > Application.lodlevel help
Don’t forget to mark the answer if found useful…cheers from INDIA…
Thank you for your answer. It's working. But still in the player has the control over the ball even after GUI is loaded. The player can move the ball with the direction key. How to disable the input until and unless one of the button is clicked?
– Murtaza-Learner