コード例 #1
0
 // Use this for initialization
 void Start()
 {
     if (biDirectional)
     {
         startPctOffset += Vector3.one * 0.25f;
     }
     oscillator    = new VectorOscillator(wavelength, startPctOffset, curveType);
     startRotation = moverTransform.localRotation.eulerAngles;
 }
コード例 #2
0
    // 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;
    }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     originalScale = moverTransform.localScale;
     oscillator    = new VectorOscillator(wavelength, startAnimPct, curveType, randomizeStart);
 }