Exemple #1
0
 /// <summary>
 /// Updates the sensor
 /// </summary>
 private void Update()
 {
     if (scanTimer.Update(Time.deltaTime))
     {
         Scan();
         scanTimer.Reset();
     }
 }
Exemple #2
0
            /// <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)
                    {
                    }
                }
            }