Пример #1
0
    public void Restart()
    {
        if (controlPoints != null)
        {
            mPos = new SplineV();
            mRot = new SplineQ();

            float time = Time.time;

            foreach (Transform t in controlPoints)
            {
                mPos.AddKey(time, t.position);
                mRot.AddKey(time, t.rotation);
                time += timePerPoint;
            }
        }
    }
Пример #2
0
    public void Restart()
    {
        if (controlPoints != null)
        {
            mPos = new SplineV();
            mRot = new SplineQ();

            float time = Time.time;

            foreach (Transform t in controlPoints)
            {
                mPos.AddKey(time, t.position);
                mRot.AddKey(time, t.rotation);
                time += timePerPoint;
            }
        }
    }