05-21-2014, 01:12 PM
(05-21-2014, 09:48 AM)'Jake' Wrote: Subclass is another name for derived or inherited classes, try reading some docs about C# object orientation and inheritage (the Microsoft docs are hard to understand sometimes, but I'm sure there is tons of dedicated learning material floating around for free).
In short, your new script is a MonoBehaviour (because it's derived from FollowSpline which is derived from MonoBehaviour), so you can just add it to a GameObject.
Thanks for the reply. I'm slowly working my way through the documentation I can find on C# inheritance etc.
I think I've finally started to get a handle on things. However I'm now getting the following error 'Assets/Plane_Movement.cs(69,72): error CS0122: `FluffyUnderware.Curvy.shipMove.Current' is inaccessible due to its protection level', where Plane_Movement is my player movement script with the override class and shipMove is my modified FollowSpline script.
I'm guessing I haven't quite got a grasp of inheritance just yet.