/// <summary> /// Updates the sensor /// </summary> private void Update() { if (scanTimer.Update(Time.deltaTime)) { Scan(); scanTimer.Reset(); } }
/// <summary> /// Updates the interpolator /// </summary> /// <param name="dt"></param> public void Update(float dt) { if (Active) { if (Timer.Update(dt)) { Timer.Reset(); _Active = false; } float t = Timer.normalizedProgress; Interpolate(t); // Interpolate depending on type if (currentValue is Vector3) { } } }