Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- public class CityGen : MonoBehaviour
- {
- private GameObject[] roadArray;
- private int[] roadNumArray;
- enum GameObject
- {
- road_Bend_Left,
- road_Bend_Right,
- road_Corner,
- road_CornerLines,
- road_Crossing,
- road_LaneTransition_Left,
- road_LaneTransition_Right,
- road_Straight,
- road_T,
- roadLane_Straight_Centered,
- }
- // Use this for initialization
- void Start()
- {
- roadArray = new GameObject[9];
- }
- // Update is called once per frame
- void Update ()
- {
- }
- void RoadPlacement()
- {
- float x = 0;
- float y = 0;
- Vector3 centerPoint = new Vector3(0, 0, 0);
- Vector3 straightRoadsX = new Vector3(x - 1, y, 0);
- Vector3 straightRoadsY = new Vector3(x, y - 1, 0);
- Vector3 cornerRoadsX = new Vector3(x - 1, y - 1, 0);
- Vector3 cornerRoadsY = new Vector3(x + 1, y - 1, 0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement