iTween.DrawPathHelper C# (CSharp) Method

DrawPathHelper() private static method

private static DrawPathHelper ( Vector3 path, Color color, string method ) : void
path Vector3
color Color
method string
return void
    private static void DrawPathHelper(Vector3[] path, Color color, string method)
    {
        Vector3[] vector3s = PathControlPointGenerator(path);

        //Line Draw:
        Vector3 prevPt = Interp(vector3s,0);
        Gizmos.color=color;
        int SmoothAmount = path.Length*20;
        for (int i = 1; i <= SmoothAmount; i++) {
            float pm = (float) i / SmoothAmount;
            Vector3 currPt = Interp(vector3s,pm);
            if(method == "gizmos"){
                Gizmos.DrawLine(currPt, prevPt);
            }else if(method == "handles"){
                Debug.LogError("iTween Error: Drawing a path with Handles is temporarily disabled because of compatability issues with Unity 2.6!");
                //UnityEditor.Handles.DrawLine(currPt, prevPt);
            }
            prevPt = currPt;
        }
    }
iTween