コード例 #1
0
 public void SetData(BoxModel boxModel)
 {
     if (PlayerPrefsUtil.LockModels.Count <= PlayerPrefsUtil.GetBoxMonthIndex())
     {
         PlayerPrefsUtil.SaveBoxMonthIndex(0);
     }
     CurrentIndex  = PlayerPrefsUtil.GetUserDayPosition(boxModel);
     BoxMonthIndex = PlayerPrefsUtil.GetBoxMonthIndex();
     BoxModel      = boxModel;
     UnlockDays.Clear();
     UpdatePosition();
     UpdateItem(PlayerPrefsUtil.LockModels[BoxMonthIndex], boxModel.boxContentList);
 }