Exemplo n.º 1
0
    public void StartGeneration()
    {
        if (builderManager == null)
        {
            Debug.LogError("BuildManager can't be null");
            return;
        }

        procGrid = builderManager.Grid;
        ApplyBaseFilters();
        PlaceBuildings();
    }
Exemplo n.º 2
0
    private void Start()
    {
        data  = GraphData.gd;
        grid1 = (ProcGrid)plane1.GetComponent(typeof(ProcGrid));
        grid2 = (ProcGrid)plane2.GetComponent(typeof(ProcGrid));
        grid3 = (ProcGrid)plane3.GetComponent(typeof(ProcGrid));
        //add a listener for the inputfield and button. you can remove it if you have to

        //prepare the backgroundworker for battle!
        bw.WorkerReportsProgress = true;
        bw.DoWork             += new DoWorkEventHandler(bw_DoWork);
        bw.ProgressChanged    += new ProgressChangedEventHandler(bw_ProgressChanged);
        bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bw_RunWorkerCompleted);
        runTest();
    }
Exemplo n.º 3
0
 void Start()
 {
     camera        = Camera.main;
     Grid          = new ProcGrid(gridSize);
     previewBlocks = new List <GameObject>();
 }