Свойство | Type | Description | |
---|---|---|---|
ElementCount | int | ||
OffSprite | Sprite | ||
OnSprite | Sprite |
Méthode | Description | |
---|---|---|
DownElementCount ( ) : void |
Sets the element count to elementCount - 1.
|
|
OnTriggerEnter2D ( |
Called when this Object's Collider encounters another.
|
|
Start ( ) : void |
Initializes the MenuButton.
|
|
UpElementCount ( ) : void |
Sets the element count to elementCount + 1.
|
Méthode | Description | |
---|---|---|
GetTextName ( ) : string |
Informs which Text is associated with this MenuButton.
|
|
GetUIElementToSpawn ( ) : UIDraggableElement, |
Informs which UIDraggableElement this MenuButton has to spawn.
|
|
IsRightMovementAction ( DraggableElement, draggableElement ) : bool |
Informs whether the given Element is the DraggableElement bound the this MenuButton.
|
Méthode | Description | |
---|---|---|
SetElementCountToText ( ) : void |
Sets the element count to the associated Text.
|
|
SetOffSprite ( ) : void |
Sets the appearance of the MenuButton to OFF.
|
|
SetOnSprite ( ) : void |
Sets the appearance of the MenuButton to ON.
|
|
SpawnUIDraggableElement ( ) : void |
Spawns the UIDraggableElement associated with this MenuButton on top of this MenuButton.
|
protected abstract GetTextName ( ) : string | ||
Résultat | string |
protected abstract GetUIElementToSpawn ( ) : UIDraggableElement, | ||
Résultat | UIDraggableElement, |
protected abstract IsRightMovementAction ( DraggableElement, draggableElement ) : bool | ||
draggableElement | DraggableElement, | The Element to test. |
Résultat | bool |
public OnTriggerEnter2D ( |
||
other | The |
|
Résultat | void |