Property | Type | Description | |
---|---|---|---|
animationName | string | ||
facing | Facing | ||
offset |
Method | Description | |
---|---|---|
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 | ||
return | void |
public OnTriggerExit2D ( |
||
o | ||
return | void |
public PositionCharacter ( Character p ) : void | ||
p | Character | |
return | void |