示例#1
0
    // 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
    }
示例#2
0
 // Use this for initialization
 void Start()
 {
     prefabs = this;
 }