Advertisement

Need help on this top down road code

Started by November 16, 2017 05:42 PM
0 comments, last by idzohar 7 years ago

I am trying to make a top down 2d racing game. I want the player to only ever "drive" toward the top of the screen and have the road move downward. I want the road to be made of segments that I can swap with differing pieces of road. I am trying to get this implemented in unity using C#. When I run my code, the road pieces move downward and then only the 1st and 3rd segments disappear at -10. All 3 of the segments remain in my hierarchy, however. Can Somebody please help me?

 

GameController.cs

PlayerController.cs

RoadController.cs

This topic is closed to new replies.

Advertisement