프로퍼티 | 타입 | 설명 | |
---|---|---|---|
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 GetUIElementToSpawn ( ) : UIDraggableElement, | ||
리턴 | UIDraggableElement, |
protected abstract IsRightMovementAction ( DraggableElement, draggableElement ) : bool | ||
draggableElement | DraggableElement, | The Element to test. |
리턴 | bool |
public OnTriggerEnter2D ( |
||
other | The |
|
리턴 | void |