Spline Controller (javascript) error

I’ve downloaded the Javascript version of the Unify Community “Spline Controller”, which consists of three javascript files (MathUtils.js, SplineController.js, and SplineInterpolator.js) but when i try to import the scripts as assets in my project i get this error message:

“Sistem.Collections.IComparer” is not a class. “extends” can only be used with classes. Did you mean “Implements”?

The error refers to SplineController.js

What’s the problem? Do you know if i have to create specific folders in which i have to import these scripts? or maybe i have to load other specific assets necessary to make these scripts work?

I’m not sure why the script wouldn’t compile straight out of the box, but the compile error looks simple enough to fix. It’s an interface you implement rather than a base class to extend. You can use it like this:

Solved! i had to add this declaration at the beginning!

public class IComparer
{
    //code
}