// Use this for initialization void Start() { if (biDirectional) { startPctOffset += Vector3.one * 0.25f; } oscillator = new VectorOscillator(wavelength, startPctOffset, curveType); startRotation = moverTransform.localRotation.eulerAngles; }
// Use this for initialization void Start() { // Bi-directionals start in the middle of the upswing. if (biDirectional) { startOffsetPct += Vector3.one * 0.25f; } oscillator = new VectorOscillator(wavelength, startOffsetPct, curveType); startPos = localMotion ? moverTransform.localPosition : moverTransform.position; }
// Use this for initialization void Start() { originalScale = moverTransform.localScale; oscillator = new VectorOscillator(wavelength, startAnimPct, curveType, randomizeStart); }