// Use this for initialization void Start() { prefabs = GetComponent <LandscapePrefabs>(); scenarioTree = GetComponent <DT>(); scenarioTree.createTree(); areas = new Area[levelSize]; generateNewAreas(); Area.width = areaWidth; rightEdge = (levelSize - 2) * areaWidth - (areaWidth / 2); leftEdge = -areaWidth; //Need to change if town size is changed }
// Use this for initialization void Start() { prefabs = this; }