public bool IsUnlocked() { if (characterIdToUnlock <= 0) { return(true); } var playTimes = PlayerPrefsHelper.GetCharacterPlayTimes(characterIdToUnlock); return(playTimes >= characterPlayTimesToUnlock); }