Ladder tile. Climb ladder
More...
Ladder tile. Climb ladder
◆ DisableLadder()
virtual void UnityPlatformer.Ladder.DisableLadder |
( |
Character |
p | ) |
|
|
inlinevirtual |
◆ Dismount()
virtual void UnityPlatformer.Ladder.Dismount |
( |
Character |
p | ) |
|
|
inlinevirtual |
Notify Character to exit ladder state For example if character jumps.
◆ EnableLadder()
virtual void UnityPlatformer.Ladder.EnableLadder |
( |
Character |
p | ) |
|
|
inlinevirtual |
◆ GetBottom()
virtual Vector3 UnityPlatformer.Ladder.GetBottom |
( |
| ) |
|
|
inlinevirtual |
get real-world-coordinates bottom of the ladder
◆ GetTop()
virtual Vector3 UnityPlatformer.Ladder.GetTop |
( |
| ) |
|
|
inlinevirtual |
get real-world-coordinates top of the ladder
◆ IsAboveTop()
virtual bool UnityPlatformer.Ladder.IsAboveTop |
( |
Character |
c, |
|
|
Vector2 |
pos |
|
) |
| |
|
inlinevirtual |
Return if the character at given position will be above the top this is used to know before moving the character is will reach the top in the next frame
◆ IsAtBottom()
virtual bool UnityPlatformer.Ladder.IsAtBottom |
( |
Character |
c, |
|
|
Vector2 |
pos |
|
) |
| |
|
inlinevirtual |
Return if the Character is very close to the bottom
◆ IsAtTop()
virtual bool UnityPlatformer.Ladder.IsAtTop |
( |
Character |
c, |
|
|
Vector2 |
pos |
|
) |
| |
|
inlinevirtual |
Return if the Character is very close to the top
◆ IsBelowBottom()
virtual bool UnityPlatformer.Ladder.IsBelowBottom |
( |
Character |
c, |
|
|
Vector2 |
pos |
|
) |
| |
|
inlinevirtual |
Return if the character at given position will be above the botom this is used to know before moving the character is will reach the botom in the next frame
◆ OnTriggerEnter2D()
virtual void UnityPlatformer.Ladder.OnTriggerEnter2D |
( |
Collider2D |
o | ) |
|
|
inlinevirtual |
if a hitbox (EnterAreas) enters -> EnableLadder
◆ OnTriggerExit2D()
virtual void UnityPlatformer.Ladder.OnTriggerExit2D |
( |
Collider2D |
o | ) |
|
|
inlinevirtual |
if a hitbox (EnterAreas) lave -> DisableLadder
◆ Start()
override void UnityPlatformer.Ladder.Start |
( |
| ) |
|
|
inlinevirtual |
◆ bottomDismount
bool UnityPlatformer.Ladder.bottomDismount = true |
true: Bottom is reachable (Ladder, Fall) false: Bottom is not reachable (Vine)
◆ topDismount
bool UnityPlatformer.Ladder.topDismount = true |
true: Top is reachable (Ladder) false: Top is not reachable (Vine)
The documentation for this class was generated from the following file:
- Assets/UnityPlatformer/Scripts/Tiles/Ladder.cs