Created
June 28, 2018 20:54
-
-
Save rlewicki/3ec15f2f35a6aa86dbf0c87b91048cea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LevelGating : MonoBehaviour | |
{ | |
public void Initialize() | |
{ | |
PlayerEvents.PlayerLevelUp += OnPlayerLevelUp; | |
} | |
private void OnPlayerLevelUp(int level) | |
{ | |
// Example usage | |
if(level > 11) | |
{ | |
UnlockNewFeature(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment