Example #1
0
    // Use this for initialization
    void Start()
    {
        _floatLerp = new AutoLerp.FloatLerp(FloatStartValue, FloatEndValue, time);
        _floatLerp.Start();

        _vector2Lerp = new AutoLerp.Vector2Lerp(Vector2StartValue, Vector2EndValue, time);
        _vector2Lerp.Start();

        _vector3Lerp = new AutoLerp.Vector3Lerp(Vector3StartValue, Vector3EndValue, time);
        _vector3Lerp.Start();

        _quaternionLerp = new AutoLerp.QuaternionLerp(QuaternionStartValue, QuaternionEndValue, time);
        _quaternionLerp.Start();

        _colorLerp = new AutoLerp.ColorLerp(ColorStartValue, ColorEndValue, time);
        _colorLerp.Start();

        _color32Lerp = new AutoLerp.Color32Lerp(Color32StartValue, Color32EndValue, time);
        _color32Lerp.Start();
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     _lerp = new AutoLerp.QuaternionLerp(Quaternion.Euler(StartRotation), Quaternion.Euler(EndRotation), MoveTime);
     _lerp.Start();
 }