Пример #1
0
    /// <summary>
    ///
    /// </summary>
    void Start()
    {
        _graph  = GraphFactory.CreateGrid(_countX, _countY);
        _depths = new int[_graph.VertexCount];
        CreateVertices();
        //_ignored = CreateIgnored();

        // center on origin
        transform.localPosition = new Vector3(-_countX * 0.5f, 0.0f, -_countY * 0.5f);
    }
Пример #2
0
    void Start()
    {
        //create graph
        _graph = GraphFactory.CreateGrid(countX, countY);

        depths = new int [_graph.VertexCount];

        lines = new List <GameObject>();
        //create block
        CreateBlocks();
        //create mesh
        CreateMesh();

        GetMaxHeight();

        DrawLine();
    }