Ejemplo n.º 1
0
    internal static void endRecording()
    {
        Record activeRecord = getActiveTimeRecord();

        if (activeRecord.startMil == null)
        {
            return;
        }
        activeRecord.endMil = CurrentDateTimeToMilSecs();
        RecordsManager.save(activeRecord);
        PlayerPrefs.SetString("activeRecord", JsonUtility.ToJson(new Record()));
    }
Ejemplo n.º 2
0
 public void onSave()
 {
     record.hint = hintInput.text;
     record.SetStartDate(startDateTimeSelector.dateTime);
     record.SetEndDate(endDateTimeSelector.dateTime);
     if (record.id == 0)
     {
         RecordsManager.save(record);
     }
     RecordManager.update(record);
     ObjectFactory.createDayList();
 }