Unlock-Locked Level

Can you help me. I currently have 3 levels in my game. In level 1 I can collect coins. When I have collected a certain number of coins, level 2 is unlocked. How can I implement this? At the beginning, levels 2 and 3 should be locked

I have the same thing, only I have not coins but time

Can you explain the coding a little bit please

There’s an example starter project that should help you.

Other example starters are all on this page.

I made the example as simple as possible