예제 #1
0
파일: User.cs 프로젝트: XanoSage/Match2Test
 public void AddLevelCompleteData(LevelCompleteData levelCompleteData)
 {
     if (_userProgressData.TryAddLevelCompleteData(levelCompleteData))
     {
         SaveProgressData();
     }
 }
예제 #2
0
        public bool TryAddLevelCompleteData(LevelCompleteData levelCompleteData)
        {
            if (LevelCompletedList.Any(completeData => completeData.LeveNumber == levelCompleteData.LeveNumber))
            {
                return(false);
            }

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