public static bool SetLevelToLoad(BaseLevel level) { if (level.UnlockLevel(playerData.totalStars)) { levelToLoad = level; return(true); } return(false); }