Свойство | Тип | Описание | |
---|---|---|---|
ElementCount | int | ||
OffSprite | Sprite | ||
OnSprite | Sprite |
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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 | ||
Результат | string |
protected abstract GetUIElementToSpawn ( ) : UIDraggableElement, | ||
Результат | UIDraggableElement, |
protected abstract IsRightMovementAction ( DraggableElement, draggableElement ) : bool | ||
draggableElement | DraggableElement, | The Element to test. |
Результат | bool |
public OnTriggerEnter2D ( |
||
other | The |
|
Результат | void |