/// <summary> /// Start AutoTune: fetch new settings for this specific device. /// <param name="callback">The callback that will get executed when new settings are received and parsed</param> /// </summary> public static void Fetch(AutoTuneCallback callback) { GetInstance().CleanUp(); GetInstance()._callback = callback; GetInstance()._startTime = Time.time; GetInstance().TryFetch(); }
private void CleanUp() { _updateNeeded = false; _isError = false; _deviceInfo = null; _callback = null; _startTime = 0L; }
public static void Fetch(AutoTuneCallback callback) { GetInstance().CleanUp(); GetInstance()._callback = callback; GetInstance()._startTime = getCurrentTimestamp(); GetInstance()._fetchInGameTime = Time.time; GetInstance().TryFetch(); }