C# 클래스 MenuButton, PuzzleGameProject

상속: MonoBehaviour
파일 보기 프로젝트 열기: Cedric-Paris/PuzzleGameProject 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ElementCount int
OffSprite Sprite
OnSprite Sprite

공개 메소드들

메소드 설명
DownElementCount ( ) : void

Sets the element count to elementCount - 1.

OnTriggerEnter2D ( Collider2D other ) : void

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.

메소드 상세

DownElementCount() 공개 메소드

Sets the element count to elementCount - 1.
public DownElementCount ( ) : void
리턴 void

GetTextName() 보호된 추상적인 메소드

Informs which Text is associated with this MenuButton.
protected abstract GetTextName ( ) : string
리턴 string

GetUIElementToSpawn() 보호된 추상적인 메소드

Informs which UIDraggableElement this MenuButton has to spawn.
protected abstract GetUIElementToSpawn ( ) : UIDraggableElement,
리턴 UIDraggableElement,

IsRightMovementAction() 보호된 추상적인 메소드

Informs whether the given Element is the DraggableElement bound the this MenuButton.
protected abstract IsRightMovementAction ( DraggableElement, draggableElement ) : bool
draggableElement DraggableElement, The Element to test.
리턴 bool

OnTriggerEnter2D() 공개 메소드

Called when this Object's Collider encounters another.
public OnTriggerEnter2D ( Collider2D other ) : void
other UnityEngine.Collider2D The that collided with the MenuButton.
리턴 void

Start() 공개 메소드

Initializes the MenuButton.
public Start ( ) : void
리턴 void

UpElementCount() 공개 메소드

Sets the element count to elementCount + 1.
public UpElementCount ( ) : void
리턴 void

프로퍼티 상세

ElementCount 공개적으로 프로퍼티

The actual element count.
public int ElementCount
리턴 int

OffSprite 공개적으로 프로퍼티

The Sprite to show when the element count is equal to 0.
public Sprite OffSprite
리턴 Sprite

OnSprite 공개적으로 프로퍼티

The Sprite to show when the element count is greater than 0.
public Sprite OnSprite
리턴 Sprite