コード例 #1
0
ファイル: Game.cs プロジェクト: ausLancaster/procgen-city
    private void Start()
    {
        segFactory       = GetComponent <SegmentFactory>();
        globalGoals      = GetComponent <GlobalGoals>();
        localConstraints = GetComponent <LocalConstraints>();
        map           = GetComponent <RoadMap>();
        lotsGenerator = GetComponent <LotsGenerator>();

        seed = 8;
        //seed = Random.Range(0, 65536);
        Generate(seed);
    }
コード例 #2
0
 public RoadMapGenerator()
 {
     globalGoals      = new GlobalGoals();
     localConstraints = new LocalConstraints();
     roadGenerator    = new RoadGenerator();
 }