コード例 #1
0
        public void SelectTodaysFiles()
        {
            if (FileManager.JsonDirectories.Count == 0)
            {
                return;
            }

            string daytime = FileManagement.GetDateTime();
            var    curTime = FileManagement.StringToInt(daytime);
            string today   = FileManagement.RemoveLengthFromEnd(curTime.ToString(), 6);

            for (int i = 0; i < FileManager.JsonDirectories.Count; i++)
            {
                string day = FileManagement.RemoveLengthFromEnd(
                    FileManager.JsonDirectories[i].value.ToString(), 6);

                if (today == day)
                {
                    ChangeSelectionStatus(i, true);
                }

                else
                {
                    ChangeSelectionStatus(i, false);
                }
            }
        }
コード例 #2
0
        public IEnumerator OnInitRetargeting()
        {
            //folder to store files
            string curTime = FileManagement.GetDateTime();

            folderPath = $"{persistentPath}/{curTime}_{prefixs[0].j_Prefix()}";
            FileManagement.CreateDirectory(folderPath);

            //time to create dir
            yield return(waitForFrame);

            //initialize trackers
            InitTrackers(folderPath, "/" + curTime);

            //time to init - starting at frame 1 because of the delay
            yield return(waitForFrame);

            frame = 1;
            OnEnableTracking();
        }