I am starting to get confused on the Types and classes and such.
1a.) What is the benefit of giving startWaypoint and endWaypoint the Type Waypoint?
1b.) Could I have given them a different type? Or are we going to do something special later on with this information (I am betting we will.) I originally was going to give them type GameObject with serializedFields in the inspector, drag and drop the two Tops into them. Tthen specifically modify the mesh renderers of the two Tops we are using for the start and end like we did in SetTopColor. Would that have worked as well? At least for just coloring them?
2.) Once I create a script named Waypoint, it creates a Class named Waypoint that I can access/use in all scripts? Is this regardless of where in the game this script is attached? (Meaning I should not and cannot reuse the âWaypointâ with the capital âWâ anywhere else in my game without causing problems?)
Thanks in advance for all the help!
Sincerely,
Ryan