示例#1
0
    /// <summary>
    /// Builds the tile map along its properties
    /// </summary>
    public void CreateLevel()
    {
        m_edgeController = GameObject.FindGameObjectWithTag("EdgeController").GetComponent <EdgeController>();
        InitializeTileMap();
        SetTileNeighbors();

        if (m_meshController == null)
        {
            m_meshController = FindObjectOfType <NavMeshController>();
        }
        m_meshController.Build();
    }