Пример #1
0
        private void Update()
        {
            try
            {
                timeBuffer.AddToBuffer(GetTimeStamp());
                loggerConfig.onGetValue.Invoke(loggerConfig);
                loggerConfig.dataBuffer.UpdateBufferLength(loggerConfig.bufferLength);
                timeBuffer.UpdateBufferLength(loggerConfig.bufferLength);

                if (loggerConfig.logOnUpdate)
                {
                    logOnUpdateDataBuffer.Add(loggerConfig.dataBuffer.GetValueAt(loggerConfig.dataBuffer.GetBufferLength() - 1));
                    logOnUpdateTimeBuffer.Add(timeBuffer.GetValueAt(timeBuffer.GetBufferLength() - 1));
                }
            }

            catch (Exception e)
            {
                Debug.Log(e.ToString());
            }
        }