Свойство | Тип | Описание | |
---|---|---|---|
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 |
public PositionCharacter ( Character p ) : void | ||
p | Character | |
Результат | void |
public abstract Use ( Character p ) : void | ||
p | Character | |
Результат | void |