I have a car that pulls up to an intersection. And then it is suppose to pull from the intersection collider what radius to turn at to make a proper turn. How do I code to pull that script from the collider?
I think it is along the lines of this but this is as far as I could get
intersectionScript3Way = other.GetComponent(MonoScript).IntersectionScript;
intersectionScript3Way being my variable inside the car script
other is the collider with the script on it
IntersectionScript is the script im trying to pull.