public static bool isLevelUnlocked(StageButton sButton) { return(PlayerPrefs.GetInt(sButton.id + "isUnlocked", 0) == 1); }
public static void LockLevel(StageButton sButton) { PlayerPrefs.SetInt(sButton.id + "isUnlocked", 0); }