/// <summary> /// Sets the tile with the configurations from the xml file. /// </summary> /// <param name='tile'> /// Tile. /// </param> /// <param name='nav'> /// Nav. /// </param> protected void setTile(HexTile tile, XPathNavigator nav) { nav.MoveToFirstChild(); tile.CanMove = nav.ValueAsBoolean; nav.MoveToNext(); if(!nav.Value.Equals("none")){ // Set Material Material mat = (Material)Resources.Load(MapMaterialsPath + nav.Value, typeof(Material)); tile.setMaterial(mat); } }