void Start() { SR = this.GetComponent <StraightRoad>(); CR = this.GetComponent <CurvedRoad>(); currentPlacement = SR; map = new int[gridSizeX, gridSizeY]; for (int i = 0; i < map.GetLength(0); i++) { for (int j = 0; j < map.GetLength(1); j++) { map[i, j] = (int)cellVal.EMPTY; } } selectCell(); }
public void curvedRoad(GameObject roadType) { currentPlacement = CR; changeSprite(roadType); }
public void straightRoad(GameObject roadType) { currentPlacement = SR; changeSprite(roadType); }