void BtnMissionFinishOnClick(PointerEventData eventData, UI_Event ev) { int type = ev.GetData <int>("t"); Mission mis = ev.GetData <Mission>("d"); if (type == 1) { mis.mDateTime = TimeConvert.GetNow(); mis.mCount++; } else if (type == 2) { mis.mDateTime = TimeConvert.GetTommorrow(); mis.mFinished = TimeConvert.NowDay(); mis.mCount++; } mis.mLog = StatisticsManager.instance.AddLog(mis.mId, mis.mDesc); StatisticsManager.instance.Save(); MissionManager.instance.Save(); List <Mission> lst_mis = MissionManager.instance.GetDailyMission(); float _pos = mContent.transform.localPosition.y; ShowMission(lst_mis); MoveScrollTo(_pos); }