메소드 | 설명 | |
---|---|---|
DisableLadder ( Character p ) : void |
Notify Character to exit ladder area
|
|
Dismount ( Character p ) : void |
Notify Character to exit ladder state For example if character jumps.
|
|
EnableLadder ( Character p ) : void |
Notify Character is on ladder area
|
|
GetBottom ( ) : |
get real-world-coordinates bottom of the ladder
|
|
GetTop ( ) : |
get real-world-coordinates top of the ladder
|
|
IsAboveTop ( Character c, |
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 ( Character c, |
Return if the Character is very close to the bottom
|
|
IsAtTop ( Character c, |
Return if the Character is very close to the top
|
|
IsBelowBottom ( Character c, |
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 ( |
if a hitbox (EnterAreas) enters -> EnableLadder
|
|
OnTriggerExit2D ( |
if a hitbox (EnterAreas) lave -> DisableLadder
|
|
Start ( ) : void |
get BoxCollider2D
|
메소드 | 설명 | |
---|---|---|
OnDrawGizmos ( ) : void |
public IsAboveTop ( Character c, |
||
c | Character | |
pos | ||
리턴 | bool |
public IsAtBottom ( Character c, |
||
c | Character | |
pos | ||
리턴 | bool |
public IsAtTop ( Character c, |
||
c | Character | |
pos | ||
리턴 | bool |
public IsBelowBottom ( Character c, |
||
c | Character | |
pos | ||
리턴 | bool |
public OnTriggerEnter2D ( |
||
o | ||
리턴 | void |
public OnTriggerExit2D ( |
||
o | ||
리턴 | void |