Example #1
0
        private void ClearPrefsForNewSquad(int squadLevelPref)
        {
            SharedPlayerPrefs sharedPlayerPrefs = Service.SharedPlayerPrefs;

            sharedPlayerPrefs.SetPref("HighestViewedSquadLvlUP", squadLevelPref.ToString());
            sharedPlayerPrefs.SetPrefUnlimitedLength("perk_badges", string.Empty);
        }
Example #2
0
        private void SetPerkBadgeList(List <string> badgedGroups)
        {
            SharedPlayerPrefs sharedPlayerPrefs = Service.SharedPlayerPrefs;
            string            text = string.Empty;

            if (badgedGroups != null)
            {
                int count = badgedGroups.Count;
                for (int i = 0; i < count; i++)
                {
                    text += badgedGroups[i];
                    if (i < count - 1)
                    {
                        text += " ";
                    }
                }
            }
            sharedPlayerPrefs.SetPrefUnlimitedLength("perk_badges", text);
        }