public static void SetTopModifier(LandscapeTile tile, LandscapeTileModifierType modifier, bool recurse = true) { if (tile != null) { tile.TopModifier = modifier; tile.RefreshTileMesh (); if (recurse) SetBottomModifier (tile.TopTile, modifier, false); } }
public static void SetTopRightElevation(LandscapeTile tile, int elevation, bool recurse = true) { if (tile != null) { tile.TopRightElevation = elevation; tile.RefreshTileMesh (); if (recurse) { SetBottomRightElevation (tile.TopTile, elevation, false); SetBottomLeftElevation (tile.TopRightTile, elevation, false); SetTopLeftElevation (tile.RightTile, elevation, false); } } }
public static void SetRightModifier(LandscapeTile tile, LandscapeTileModifierType modifier, bool recurse = true) { if (tile != null) { tile.RightModifier = modifier; tile.RefreshTileMesh (); if (recurse) SetLeftModifier (tile.RightTile, modifier, false); } }