Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Handling Connections with FollowSpline and Path Switching
#7
(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. 


 

 
Reply


Messages In This Thread

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rasterized Path Range issue proton 7 23 04-30-2024, 11:17 AM
Last Post: _Aka_
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Connections Problem Juton 3 16 03-06-2024, 10:41 AM
Last Post: _Aka_
Wink Train carriage with 2 bogies following a path arcadeperfect 9 27 08-25-2023, 02:56 PM
Last Post: arcadeperfect

Forum Jump: