프로퍼티 | 타입 | 설명 | |
---|---|---|---|
animationName | string | ||
facing | Facing | ||
offset |
메소드 | 설명 | |
---|---|---|
Enter ( Character p ) : void |
notify Character is in area item
|
|
Exit ( Character p ) : void |
notify Character is out area item
|
|
GetCenter ( ) : |
Get real-world-coordinates center
|
|
IsUsableBy ( Character p ) : bool |
everybody can use this item otherwise, override
|
|
OnTriggerEnter2D ( |
When HitBox(EnterAreas) enter -> Enter
|
|
OnTriggerExit2D ( |
When HitBox(EnterAreas) leave -> Exit
|
|
PositionCharacter ( Character p ) : void |
Set the position/facing of the player to the desired values
|
|
Start ( ) : void |
Get BoxCollider2D
|
|
Use ( Character p ) : void |
Implement this function with the action that need to performed
|
public OnTriggerEnter2D ( |
||
o | ||
리턴 | void |
public OnTriggerExit2D ( |
||
o | ||
리턴 | void |