// Update is called once per frame
    void Update()
    {
        logRaw  = Sys.logRaw;
        logData = Sys.logData;

        if (CaptureScreenView)
        {
            string getDateTime = System.DateTime.Now.ToString("MMddyyyy_hhmmss");
            Sys.CaptureScreenshot(this, (dataPath + "/" + getDateTime + ".png"), true);
            //capture = Sys.ScreenToTexture2D();
            //capture = Sys.LoadImageAtPath(dataPath + "/" + getDateTime + ".png");
            CaptureScreenView = false;
        }

        if (SaveArrayToFile)
        {
            //Sys.SaveDataToFile(dataPath + "/" + "abc.txt", saveArray);
            Sys.SaveFile(dataPath + "/" + "abc.txt", saveArray);
            SaveArrayToFile = false;
        }
        if (GetArrayFromFile)
        {
            //loadArray = Sys.LoadDataFromFile(dataPath + "/" + "abc.txt");
            loadArray        = Sys.ReadFile(dataPath + "/" + "abc.txt");
            GetArrayFromFile = false;
        }

        if (SaveSystemInfo)
        {
            Info.SaveSystemInfo(dataPath + "/" + sysFileName, true);
            SaveSystemInfo = false;
        }

        if (GetSystemInfo)
        {
            SystemInfo    = new List <string>(Info.GetSystemInfo());
            GetSystemInfo = false;
        }

        if (SaveSystemLog)
        {
            Sys.SaveLog(dataPath + "/" + logFileName, true);
            SaveSystemLog = false;
        }

        if (ClearSystemLog)
        {
            Sys.ClearLog();
            ClearSystemLog = false;
        }

        if (GenerateUniqueID)
        {
            uniqueID         = Sys.GenerateUniqueID(uIDLength);
            GenerateUniqueID = false;
        }
    }