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

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