Skip to content

Commit

Permalink
Optimize scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
mogoson committed Nov 16, 2017
1 parent dd1edc9 commit f726b38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Assets/MGS-PathAnimation/Scripts/Path.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
* Description : Initial development version.
*************************************************************************/

using Developer.AnimationCurveExtension;
using System.Collections.Generic;
using Developer.AnimationCurveExtension;
using UnityEngine;

namespace Developer.PathAnimation
Expand Down Expand Up @@ -112,7 +112,7 @@ public virtual void CreateCurve()

if (isClose)
{
//Add close key[the first key]
//Add close key(the first key).
time += Vector3.Distance(anchors[anchors.Count - 1], anchors[0]);
curve.AddKey(time, anchors[0]);
}
Expand Down
2 changes: 1 addition & 1 deletion Assets/MGS-PathAnimation/Scripts/PathAnimation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Date : 7/5/2017
* Description : Initial development version.
*************************************************************************/

using UnityEngine;

namespace Developer.PathAnimation
Expand Down

0 comments on commit f726b38

Please sign in to comment.