private void DrawTSelector()
    {
        EditorGUILayout.BeginHorizontal();
        GUILayout.Label("t value");
        EditorGUI.BeginChangeCheck();
        float t = EditorGUILayout.Slider(spline.t, 0f, 1f);

        if (EditorGUI.EndChangeCheck())
        {
            Undo.RecordObject(spline, "T change");
            EditorUtility.SetDirty(spline);
            spline.t         = t;
            spline.cDistance = spline.GetLength(t);
        }
        EditorGUILayout.EndHorizontal();
    }
    private IEnumerator MoveInVentialtion()
    {
        float splineSize = VentiSpline.GetLength(1.0f);

        while (currProgress < 1.0f)
        {
            //currProgress += Time.deltaTime / duration;
            currProgress = VentiSpline.GetLengthAtDistFromParametric(splineSize * Time.deltaTime / duration, currProgress);
            if (currProgress > 1.0f)
            {
                currProgress = 1.0f;
            }
            pcc.transform.SetPositionAndRotation(
                VentiSpline.GetPoint(currProgress),
                Quaternion.Euler(VentiSpline.GetDirection(currProgress)));
            yield return(null);
        }

        // CallBack
        EndMoveInVentilation();
    }