Exemple #1
0
 public void AddLevelCompleteData(LevelCompleteData levelCompleteData)
 {
     if (_userProgressData.TryAddLevelCompleteData(levelCompleteData))
     {
         SaveProgressData();
     }
 }
        public bool TryAddLevelCompleteData(LevelCompleteData levelCompleteData)
        {
            if (LevelCompletedList.Any(completeData => completeData.LeveNumber == levelCompleteData.LeveNumber))
            {
                return(false);
            }

            LevelCompletedList.Add(levelCompleteData);
            return(true);
        }