12-04-2015, 07:34 PM
The error in the first script makes me assume spline was null the time you access it in Start(). Also, if you inherit a class from SplineController you don't need a Start() and an additional spline variable. Use the Spline property instead and override some of the methods used by the controller to add your custom behaviour. See here for more details on extending.