Search Unity

New to scripting - want to create death script

Discussion in 'Scripting' started by GreenBoxInteractive, Mar 27, 2015.

  1. GreenBoxInteractive

    GreenBoxInteractive

    Joined:
    Mar 23, 2015
    Posts:
    135
    Hello, I want to create an android game, where you avoid falling objects.

    When one of the objects hits the player, a game over screen is displayed where you can either restart, or go back to a main menu.

    I have not a clue where to start.
     
  2. kdubnz

    kdubnz

    Joined:
    Apr 19, 2014
    Posts:
    177
  3. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Check out OnCollisionEnter and Application.LoadLevel