Ladders are climbable by both the player and by enemies. You can set how many tiles tall the ladder is by editing the Tiles property on the Ladder component in the Inspector.

Public Methods

Public Members

public int tiles

The number of vertical tiles in the ladder. Setting this in the Inspector will automatically update the ladder’s collider.

public Sprites sprites

GameObjects representing the top, middle, and bottom sprites of the ladder. At the minimum, the middle sprite must be slotted. If the top and bottom sprites are slotted as well, the ladder will be automatically bookended with them.