public float GetValue(float point, float time) { int firstIndex; _dataCounter = GetNextIndex(); firstIndex = _datas[_dataCounter] == null ? 0 : GetNextIndex(); _datas[_dataCounter] = new TimeScorreData(point, time); if (_dataCounter == 0) { _currentValue = GetAverageValue(firstIndex); } return(_currentValue); }
public ScorrePerTime(int count, float startTime, float scorrePerSecond) { _datas = new TimeScorreData[count]; _datas[_dataCounter] = new TimeScorreData(scorrePerSecond, startTime); _currentValue = scorrePerSecond; }