Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

reseting GameObject to original state

Discussion in 'Scripting' started by jkarateking, Jan 23, 2015.

  1. jkarateking

    jkarateking

    Joined:
    Dec 3, 2013
    Posts:
    127
    I am making a 2D pong game. At the minute I have it so if the ball hits left wall or right wall the scene restarts. However, it also resets the rackets which I don't want to be reset and resets the score (so basically its impossible to get above a score of 1 as it restarts level when someone scores).
    So how do i just reset the ball GameObject to its original state of where it was when scene started.

    thanks in advance
     
  2. QuinnWinters

    QuinnWinters

    Joined:
    Dec 31, 2013
    Posts:
    490
  3. jkarateking

    jkarateking

    Joined:
    Dec 3, 2013
    Posts:
    127
    Thankyou for your help. However for the destroy there is no preview for c#. what would i put for c#?

    p.s. i am a begginner at unity so forgive me if its obvious
     
  4. QuinnWinters

    QuinnWinters

    Joined:
    Dec 31, 2013
    Posts:
    490