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

Best way to unlock levels as you go?

Discussion in 'Scripting' started by Bleedblue1125, Feb 23, 2015.

  1. Bleedblue1125

    Bleedblue1125

    Joined:
    Jul 4, 2014
    Posts:
    18
    Hi, I seem to be very stumped on this. I can't create a script that will hide my button (it's not GUI) when the level is locked. Then, I want to be able to unlock the button when Level1 is passed, so they can continue to Level2. Any help is much appreciated! Also, I have buttons named Level2, and LockedLevel2. How would I display LockedLevel2, when level one was beaten, as well as displaying Level2 when it was beaten?
     
  2. ByteCatapult

    ByteCatapult

    Joined:
    Jan 26, 2015
    Posts:
    5
  3. Bleedblue1125

    Bleedblue1125

    Joined:
    Jul 4, 2014
    Posts:
    18