Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class CityGen : MonoBehaviour
  5. {
  6.  
  7. private GameObject[] roadArray;
  8. private int[] roadNumArray;
  9.  
  10. enum GameObject
  11. {
  12. road_Bend_Left,
  13. road_Bend_Right,
  14. road_Corner,
  15. road_CornerLines,
  16. road_Crossing,
  17. road_LaneTransition_Left,
  18. road_LaneTransition_Right,
  19. road_Straight,
  20. road_T,
  21. roadLane_Straight_Centered,
  22. }
  23.  
  24. // Use this for initialization
  25. void Start()
  26. {
  27. roadArray = new GameObject[9];
  28.  
  29. }
  30.  
  31. // Update is called once per frame
  32. void Update ()
  33. {
  34.  
  35. }
  36.  
  37. void RoadPlacement()
  38. {
  39. float x = 0;
  40. float y = 0;
  41.  
  42. Vector3 centerPoint = new Vector3(0, 0, 0);
  43.  
  44. Vector3 straightRoadsX = new Vector3(x - 1, y, 0);
  45. Vector3 straightRoadsY = new Vector3(x, y - 1, 0);
  46.  
  47. Vector3 cornerRoadsX = new Vector3(x - 1, y - 1, 0);
  48. Vector3 cornerRoadsY = new Vector3(x + 1, y - 1, 0);
  49. }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement